aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/samples/bpf/xdp_rxq_info_user.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-05-10 10:24:42 -0700
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-11 01:40:52 +0200
commit17387dd5ac2c9c4e5f7d38b5affcd70e059f0a8c (patch)
tree3eff4d0d19a8bfc59266fd2ca56fce6eeb818517 /samples/bpf/xdp_rxq_info_user.c
parenttools: bpf: improve comments in libbpf.h (diff)
downloadwireguard-linux-17387dd5ac2c9c4e5f7d38b5affcd70e059f0a8c.tar.xz
wireguard-linux-17387dd5ac2c9c4e5f7d38b5affcd70e059f0a8c.zip
tools: bpf: don't complain about no kernel version for networking code
BPF programs only have to specify the target kernel version for tracing related hooks, in networking world that requirement does not really apply. Loosen the checks in libbpf to reflect that. bpf_object__open() users will continue to see the error for backward compatibility (and because prog_type is not available there). Error code for NULL file name is changed from ENOENT to EINVAL, as it seems more appropriate, hopefully, that's an OK change. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples/bpf/xdp_rxq_info_user.c')
0 files changed, 0 insertions, 0 deletions