summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/xdpxceiver.c
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2021-01-22 13:53:51 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2021-01-26 01:57:59 +0300
commit78ed4045914c63054f2f377471b5a94f7006d61e (patch)
tree760c1793a4003ec8af17d78a882e00411ef15acb /tools/testing/selftests/bpf/xdpxceiver.c
parentf0863eab966b95f46f96708b25996c6615856484 (diff)
downloadlinux-78ed4045914c63054f2f377471b5a94f7006d61e.tar.xz
libbpf, xsk: Select AF_XDP BPF program based on kernel version
Add detection for kernel version, and adapt the BPF program based on kernel support. This way, users will get the best possible performance from the BPF program. Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Marek Majtyka <alardam@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Acked-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Link: https://lore.kernel.org/bpf/20210122105351.11751-4-bjorn.topel@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/xdpxceiver.c')
0 files changed, 0 insertions, 0 deletions