summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_timer.h
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2006-02-16 19:38:07 +0000
committerandre <andre@FreeBSD.org>2006-02-16 19:38:07 +0000
commite83c574f873ca62a647c1d708a65c507c50a3b52 (patch)
tree50085f7cd5f6a0c2d314a7e5e7a2100f076b6b44 /sys/netinet/tcp_timer.h
parentae2214aeaef3707cbd8f1f7a2791b518a8ccef30 (diff)
downloadFreeBSD-src-e83c574f873ca62a647c1d708a65c507c50a3b52.zip
FreeBSD-src-e83c574f873ca62a647c1d708a65c507c50a3b52.tar.gz
Have TCP Inflight disable itself if the RTT is below a certain
threshold. Inflight doesn't make sense on a LAN as it has trouble figuring out the maximal bandwidth because of the coarse tick granularity. The sysctl net.inet.tcp.inflight.rttthresh specifies the threshold in milliseconds below which inflight will disengage. It defaults to 10ms. Tested by: Joao Barros <joao.barros-at-gmail.com>, Rich Murphey <rich-at-whiteoaklabs.com> Sponsored by: TCP/IP Optimization Fundraise 2005
Diffstat (limited to 'sys/netinet/tcp_timer.h')
-rw-r--r--sys/netinet/tcp_timer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/tcp_timer.h b/sys/netinet/tcp_timer.h
index c62060f..d3d7c94 100644
--- a/sys/netinet/tcp_timer.h
+++ b/sys/netinet/tcp_timer.h
@@ -86,6 +86,9 @@
#define TCPTV_KEEPINTVL ( 75*hz) /* default probe interval */
#define TCPTV_KEEPCNT 8 /* max probes before drop */
+#define TCPTV_INFLIGHT_RTTTHRESH (10*hz/1000) /* below which inflight
+ disengages, in msec */
+
/*
* Minimum retransmit timer is 3 ticks, for algorithmic stability.
* TCPT_RANGESET() will add another TCPTV_CPU_VAR to deal with
OpenPOWER on IntegriCloud