]> git.karo-electronics.de Git - karo-tx-linux.git/commit
udp: avoid one cache line miss in recvmsg()
authorEric Dumazet <edumazet@google.com>
Sat, 19 Nov 2016 01:18:03 +0000 (17:18 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2016 16:26:59 +0000 (11:26 -0500)
commitd21dbdfe0afb5195607d207f894fe86d5b322d46
tree2c0e30146d70859144e25cdf665b09750fa6eb99
parentee9d5461c0e88c51f08d0ef7149ce8469a4b4340
udp: avoid one cache line miss in recvmsg()

UDP_SKB_CB(skb)->partial_cov is located at offset 66 in skb,
requesting a cold cache line being read in cpu cache.

We can avoid this cache line miss for UDP sockets,
as partial_cov has a meaning only for UDPLite.

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