]> Git Repo - linux.git/commit
libbpf, xsk: Select AF_XDP BPF program based on kernel version
authorBjörn Töpel <[email protected]>
Fri, 22 Jan 2021 10:53:51 +0000 (11:53 +0100)
committerDaniel Borkmann <[email protected]>
Mon, 25 Jan 2021 22:57:59 +0000 (23:57 +0100)
commit78ed4045914c63054f2f377471b5a94f7006d61e
tree760c1793a4003ec8af17d78a882e00411ef15acb
parentf0863eab966b95f46f96708b25996c6615856484
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 <[email protected]>
Signed-off-by: Marek Majtyka <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Maciej Fijalkowski <[email protected]>
Acked-by: Maciej Fijalkowski <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
tools/lib/bpf/xsk.c
This page took 0.053324 seconds and 4 git commands to generate.