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

Commits on Jul 18, 2023

  1. net-test: packetdrill: Fix tcpi_snd_cwnd in cwnd-moderation-ecn-enter…

    …-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
    Gbell26 committed Jul 18, 2023
    Configuration menu
    Copy the full SHA
    a823cfc View commit details
    Browse the repository at this point in the history