tcp: fix tso not work in single buffer issue
[vpp.git] / src / vnet / tcp / tcp_newreno.c
index 7e37efb..e9213a2 100644 (file)
@@ -19,12 +19,12 @@ static void
 newreno_congestion (tcp_connection_t * tc)
 {
   tc->ssthresh = clib_max (tcp_flight_size (tc) / 2, 2 * tc->snd_mss);
+  tc->cwnd = tc->ssthresh;
 }
 
 static void
 newreno_loss (tcp_connection_t * tc)
 {
-  tc->ssthresh = clib_max (tcp_flight_size (tc) / 2, 2 * tc->snd_mss);
   tc->cwnd = tcp_loss_wnd (tc);
 }