aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/common.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <[email protected]>2022-06-29 14:34:57 +0000
committerDaniel Borkmann <[email protected]>2022-06-30 20:49:10 +0000
commit6d4c767c032b165cc290c51f4e82bc54b14b1cf1 (patch)
tree502df54dd9c27f245b25c37e8ee6b025a517ad0d /tools/bpf/bpftool/common.c
parentselftests/xsk: Introduce XDP prog load based on existing AF_XDP socket (diff)
downloadkernel-6d4c767c032b165cc290c51f4e82bc54b14b1cf1.tar.gz
kernel-6d4c767c032b165cc290c51f4e82bc54b14b1cf1.zip
selftests/xsk: Verify correctness of XDP prog attach point
To prevent the case we had previously where for TEST_MODE_SKB, XDP prog was attached in native mode, call bpf_xdp_query() after loading prog and make sure that attach_mode is as expected. Signed-off-by: Maciej Fijalkowski <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Magnus Karlsson <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions