• David S. Miller's avatar
    [TCP]: skb pcount with MTU discovery · d5ac99a6
    David S. Miller authored
    The problem is that when doing MTU discovery, the too-large segments in
    the write queue will be calculated as having a pcount of >1.  When
    tcp_write_xmit() is trying to send, tcp_snd_test() fails the cwnd test
    when pcount > cwnd.
    
    The segments are eventually transmitted one at a time by keepalive, but
    this can take a long time.
    
    This patch checks if TSO is enabled when setting pcount.
    Signed-off-by: default avatarJohn Heffner <jheffner@psc.edu>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    d5ac99a6
tcp.h 57.9 KB