• Eric Dumazet's avatar
    tcp: tsq: add shortcut in tcp_tasklet_func() · b223feb9
    Eric Dumazet authored
    Under high stress, I've seen tcp_tasklet_func() consuming
    ~700 usec, handling ~150 tcp sockets.
    
    By setting TCP_TSQ_DEFERRED in tcp_wfree(), we give a chance
    for other cpus/threads entering tcp_write_xmit() to grab it,
    allowing tcp_tasklet_func() to skip sockets that already did
    an xmit cycle.
    
    In the future, we might give to ACK processing an increased
    budget to reduce even more tcp_tasklet_func() amount of work.
    Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b223feb9
tcp_output.c 106 KB