diff options
author | Björn Töpel <bjorn.topel@intel.com> | 2021-01-22 13:53:51 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-01-26 01:57:59 +0300 |
commit | 78ed4045914c63054f2f377471b5a94f7006d61e (patch) | |
tree | 760c1793a4003ec8af17d78a882e00411ef15acb /tools/testing/selftests/bpf/xdpxceiver.c | |
parent | f0863eab966b95f46f96708b25996c6615856484 (diff) | |
download | linux-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