diff options
author | Paolo Abeni <pabeni@redhat.com> | 2017-06-12 11:23:43 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-12 10:01:29 -0400 |
commit | b65ac44674dd9c9c1ad11ebb3ec9e8882990bdb4 (patch) | |
tree | 0378a13224c5045bedeee8a4d0b57e579e45de46 /scripts/dtc | |
parent | 0a463c78d25b9464b77311d9dda297550a2d6aa5 (diff) | |
download | linux-b65ac44674dd9c9c1ad11ebb3ec9e8882990bdb4.tar.bz2 |
udp: try to avoid 2 cache miss on dequeue
when udp_recvmsg() is executed, on x86_64 and other archs, most skb
fields are on cold cachelines.
If the skb are linear and the kernel don't need to compute the udp
csum, only a handful of skb fields are required by udp_recvmsg().
Since we already use skb->dev_scratch to cache hot data, and
there are 32 bits unused on 64 bit archs, use such field to cache
as much data as we can, and try to prefetch on dequeue the relevant
fields that are left out.
This can save up to 2 cache miss per packet.
v1 -> v2:
- changed udp_dev_scratch fields types to u{32,16} variant,
replaced bitfiled with bool
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/dtc')
0 files changed, 0 insertions, 0 deletions