]> git.baikalelectronics.ru Git - kernel.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)
commit574061179d6a08b717845f62e6e403710ac49451
tree2c0e30146d70859144e25cdf665b09750fa6eb99
parent50f7cf5f11e07cc714ebf3f914ade36406cb0791
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