summaryrefslogtreecommitdiff
path: root/mm/failslab.c
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2020-11-16 14:12:45 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2020-11-18 00:07:40 +0300
commitb8c7aece29bc06e1e63efeefb9e31ab259e84ea2 (patch)
tree7f9f19040af3ec4d73d0b21878886ae1a84afc67 /mm/failslab.c
parentf320460b9489d80355821829069fdefa6c698cb4 (diff)
downloadlinux-b8c7aece29bc06e1e63efeefb9e31ab259e84ea2.tar.xz
xsk: Introduce padding between more ring pointers
Introduce one cache line worth of padding between the consumer pointer and the flags field as well as between the flags field and the start of the descriptors in all the lockless rings. This so that the x86 HW adjacency prefetcher will not prefetch the adjacent pointer/field when only one pointer/field is going to be used. This improves throughput performance for the l2fwd sample app with 1% on my machine with HW prefetching turned on in the BIOS. Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/1605525167-14450-4-git-send-email-magnus.karlsson@gmail.com
Diffstat (limited to 'mm/failslab.c')
0 files changed, 0 insertions, 0 deletions