tcp: tcp_vegas ssthresh bug fix

This patch fixes a bug in tcp_vegas.c. At the moment this code leaves
ssthresh untouched. However, this means that the vegas congestion
control algorithm is effectively unable to reduce cwnd below the
ssthresh value (if the vegas update lowers the cwnd below ssthresh,
then slow start is activated to raise it back up). One example where
this matters is when during slow start cwnd overshoots the link
capacity and a flow then exits slow start with ssthresh set to a value
above where congestion avoidance would like to adjust it.

Signed-off-by: Doug Leith <doug.leith@nuim.ie>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Doug Leith and committed by David S. Miller a6af2d6b f706644d

+2
+2
net/ipv4/tcp_vegas.c
··· 326 326 tp->snd_cwnd = 2; 327 327 else if (tp->snd_cwnd > tp->snd_cwnd_clamp) 328 328 tp->snd_cwnd = tp->snd_cwnd_clamp; 329 + 330 + tp->snd_ssthresh = tcp_current_ssthresh(sk); 329 331 } 330 332 331 333 /* Wipe the slate clean for the next RTT. */