aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Stewart <rrs@FreeBSD.org>2021-05-26 06:43:30 -0400
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-11 13:19:29 +0200
commitb89c5a3e88c6ba876dd0d4ffedc49b17040c903c (patch)
tree2a28a9cd17aa523fde8c23875907202052cd5c16
parentd4971b646486da73e4213010115e8aa0573e389a (diff)
downloadnewlib-b89c5a3e88c6ba876dd0d4ffedc49b17040c903c.zip
newlib-b89c5a3e88c6ba876dd0d4ffedc49b17040c903c.tar.gz
newlib-b89c5a3e88c6ba876dd0d4ffedc49b17040c903c.tar.bz2
tcp: Add a socket option to rack
so we can test various changes to the slop value in timers. Timer_slop, in TCP, has been 200ms for a long time. This value dates back a long time when delayed ack timers were longer and links were slower. A 200ms timer slop allows 1 MSS to be sent over a 60kbps link. Its possible that lowering this value to something more in line with todays delayed ack values (40ms) might improve TCP. This bit of code makes it so rack can, via a socket option, adjust the timer slop. Reviewed by: mtuexen Sponsered by: Netflix Inc Differential Revision: https://reviews.freebsd.org/D30249
-rw-r--r--newlib/libc/sys/rtems/include/netinet/tcp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/sys/rtems/include/netinet/tcp.h b/newlib/libc/sys/rtems/include/netinet/tcp.h
index 7ba99df..45bece9 100644
--- a/newlib/libc/sys/rtems/include/netinet/tcp.h
+++ b/newlib/libc/sys/rtems/include/netinet/tcp.h
@@ -306,6 +306,7 @@ struct tcphdr {
#define TCP_FAST_RSM_HACK 1137 /* Do we do the broken thing where we don't twiddle the TLP bits properly in fast_rsm_output? */
#define TCP_RACK_PACING_BETA 1138 /* Changing the beta for pacing */
#define TCP_RACK_PACING_BETA_ECN 1139 /* Changing the beta for ecn with pacing */
+#define TCP_RACK_TIMER_SLOP 1140 /* Set or get the timer slop used */
/* Start of reserved space for third-party user-settable options. */
#define TCP_VENDOR SO_VENDOR