Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gbell26
Copy link

@Gbell26 Gbell26 commented Jul 21, 2023

…-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

  • tp->prr_out, newly_acked_sacked) + 1) = 2.

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

Reviewed-by: Radu Rendec [email protected]
Change-Id: I7edcc4aae4f161b83ce174ce7e89c2b14fe2bac0

…-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
- tp->prr_out, newly_acked_sacked) + 1) = 2.

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

Signed-off-by: Gregory Bell <[email protected]>
Reviewed-by: Radu Rendec <[email protected]>
Change-Id: I7edcc4aae4f161b83ce174ce7e89c2b14fe2bac0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant