google / packetdrill

The official Google release of packetdrill
GNU General Public License v2.0
887 stars 220 forks source link

net-test: packetdrill: Fix tcpi_snd_cwnd in cwnd-moderation-ecn-enter… #77

Open Gbell26 opened 1 year ago

Gbell26 commented 1 year ago

…-cwr-no-moderation-700.pkt

Linux Kernel commit 7e901ee7b6ab "tcp: avoid slow start during fast recovery on new losses", changes the behavior of the test. In net/ipv4/tcp_input.c function tcp_cwnd_reduction() with added variable newly_lost we end up in the following else branch: else if (flag & FLAG_SND_UNA_ADVANCED && !newly_lost). Now sndcnt = sndcnt = min_t(int, delta, max_t(int, tp->prr_delivered

Change the asserted value of tcpi_snd_cwnd from 4 to 5, to match the new kernel behavior.

Reviewed-by: Radu Rendec rrendec@redhat.com Change-Id: I7edcc4aae4f161b83ce174ce7e89c2b14fe2bac0