aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/siftr.c
diff options
context:
space:
mode:
authorAndre Oppermann <andre@FreeBSD.org>2010-09-16 21:06:45 +0000
committerAndre Oppermann <andre@FreeBSD.org>2010-09-16 21:06:45 +0000
commit1c18314d17c6ce5596c814db1ca20c9b55f0df62 (patch)
tree5e03ba729e96310f11b48d1ee65264b751a836b1 /sys/netinet/siftr.c
parent9ed03f0231513446c0987e780331f8070c3ecdc3 (diff)
downloadsrc-1c18314d17c6ce5596c814db1ca20c9b55f0df62.tar.gz
src-1c18314d17c6ce5596c814db1ca20c9b55f0df62.zip
Remove the TCP inflight bandwidth limiter as announced in r211315
to give way for the pluggable congestion control framework. It is the task of the congestion control algorithm to set the congestion window and amount of inflight data without external interference. In 'struct tcpcb' the variables previously used by the inflight limiter are renamed to spares to keep the ABI intact and to have some more space for future extensions. In 'struct tcp_info' the variable 'tcpi_snd_bwnd' is not removed to preserve the ABI. It is always set to 0. In siftr.c in 'struct pkt_node' the variable 'snd_bwnd' is not removed to preserve the ABI. It is always set to 0. These unused variable in the various structures may be reused in the future or garbage collected before the next release or at some other point when an ABI change happens anyway for other reasons. No MFC is planned. The inflight bandwidth limiter stays disabled by default in the other branches but remains available.
Notes
Notes: svn path=/head/; revision=212765
Diffstat (limited to 'sys/netinet/siftr.c')
-rw-r--r--sys/netinet/siftr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/siftr.c b/sys/netinet/siftr.c
index 34f363636cc9..6097ad48a758 100644
--- a/sys/netinet/siftr.c
+++ b/sys/netinet/siftr.c
@@ -193,7 +193,7 @@ struct pkt_node {
u_long snd_wnd;
/* Receive Window (bytes). */
u_long rcv_wnd;
- /* Bandwidth Controlled Window (bytes). */
+ /* Unused (was: Bandwidth Controlled Window (bytes)). */
u_long snd_bwnd;
/* Slow Start Threshold (bytes). */
u_long snd_ssthresh;
@@ -775,7 +775,7 @@ siftr_siftdata(struct pkt_node *pn, struct inpcb *inp, struct tcpcb *tp,
pn->snd_cwnd = tp->snd_cwnd;
pn->snd_wnd = tp->snd_wnd;
pn->rcv_wnd = tp->rcv_wnd;
- pn->snd_bwnd = tp->snd_bwnd;
+ pn->snd_bwnd = 0; /* Unused, kept for compat. */
pn->snd_ssthresh = tp->snd_ssthresh;
pn->snd_scale = tp->snd_scale;
pn->rcv_scale = tp->rcv_scale;