inet: remove some sk_listener dependencies
authorEric Dumazet <edumazet@google.com>
Sun, 22 Mar 2015 17:22:20 +0000 (10:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Mar 2015 20:52:26 +0000 (16:52 -0400)
commit8b929ab12fb2ab960adb3c3ec8d107fef5ff3243
treef7a120b6013469c24d376aefd3935667085f1878
parent42cb80a2353f42913ae78074ffa1f1b4a49e5436
inet: remove some sk_listener dependencies

listener can be source of false sharing. request sock has some
useful information like : ireq->ir_iif, ireq->ir_num, ireq->ireq_net

This patch does not solve the major problem of having to read
sk->sk_protocol which is sharing a cache line with sk->sk_wmem_alloc.
(This same field is read later in ip_build_and_send_pkt())

One idea would be to move sk_protocol close to sk_family
(using 8 bits instead of 16 for sk_family seems enough)

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