• Stephen Hemminger's avatar
    [TCP]: fix congestion window update when using TSO deferal · f4805ede
    Stephen Hemminger authored
    TCP peformance with TSO over networks with delay is awful.
    On a 100Mbit link with 150ms delay, we get 4Mbits/sec with TSO and
    50Mbits/sec without TSO.
    
    The problem is with TSO, we intentionally do not keep the maximum
    number of packets in flight to fill the window, we hold out to until 
    we can send a MSS chunk. But, we also don't update the congestion window 
    unless we have filled, as per RFC2861.
    
    This patch replaces the check for the congestion window being full
    with something smarter that accounts for TSO.
    Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f4805ede
tcp_output.c 59.4 KB