]> 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)
commitb6efbc8ca036951b0581d50ba21e15a5341a6e48
tree2c0e30146d70859144e25cdf665b09750fa6eb99
parent60f3736ad5ef1a05944c58af45400bbe0cd1f6b3
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