]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: tsq: add a shortcut in tcp_small_queue_check()
authorEric Dumazet <edumazet@google.com>
Sat, 3 Dec 2016 19:14:54 +0000 (11:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2016 18:32:23 +0000 (13:32 -0500)
commit127821dce5d18942e3634e4bac2a6232c4dd7136
treef5559676f497c4e30b71f58e9df43a944da88641
parent2015cf81ac4eca9f74fe46c0d86eed5e82d50020
tcp: tsq: add a shortcut in tcp_small_queue_check()

Always allow the two first skbs in write queue to be sent,
regardless of sk_wmem_alloc/sk_pacing_rate values.

This helps a lot in situations where TX completions are delayed either
because of driver latencies or softirq latencies.

Test is done with no cache line misses.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c