• S
    [TCP]: fix congestion window update when using TSO deferal · f4805ede
    Stephen Hemminger 提交于
    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: NStephen Hemminger <shemminger@osdl.org>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    f4805ede
tcp_htcp.c 7.3 KB