]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: move sk_mark_napi_id() at the right place
authorEric Dumazet <edumazet@google.com>
Tue, 11 Nov 2014 13:54:27 +0000 (05:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Nov 2014 18:00:05 +0000 (13:00 -0500)
commit1b9c87b9efda1ad9c88da32e8dd38e156ede565e
tree0a3d911efa46affbd5cd26a4d34f96878b8fa83a
parent07beeba7e58ee8d478abe854d516cc7b88df14b6
tcp: move sk_mark_napi_id() at the right place

sk_mark_napi_id() is used to record for a flow napi id of incoming
packets for busypoll sake.
We should do this only on established flows, not on listeners.

This was 'working' by virtue of the socket cloning, but doing
this on SYN packets in unecessary cache line dirtying.

Even if we move sk_napi_id in the same cache line than sk_lock,
we are working to make SYN processing lockless, so it is desirable
to set sk_napi_id only for established flows.

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