aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udplite.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-12-08 11:41:55 -0800
committerDavid S. Miller <davem@davemloft.net>2016-12-09 22:12:21 -0500
commitc84d949057cab262b4d3110ead9a42a58c2958f7 (patch)
tree000d71e4f8d508764105d9e4d8b20ff86c5b9eab /net/ipv4/udplite.c
parentudp: add busylocks in RX path (diff)
downloadlinux-dev-c84d949057cab262b4d3110ead9a42a58c2958f7.tar.xz
linux-dev-c84d949057cab262b4d3110ead9a42a58c2958f7.zip
udp: copy skb->truesize in the first cache line
In UDP RX handler, we currently clear skb->dev before skb is added to receive queue, because device pointer is no longer available once we exit from RCU section. Since this first cache line is always hot, lets reuse this space to store skb->truesize and thus avoid a cache line miss at udp_recvmsg()/udp_skb_destructor time while receive queue spinlock is held. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udplite.c')
0 files changed, 0 insertions, 0 deletions