aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c
diff options
context:
space:
mode:
authorJonathan Lemon <[email protected]>2019-06-06 20:59:43 +0000
committerAlexei Starovoitov <[email protected]>2019-06-11 06:31:26 +0000
commit10a13bb40e541d8cb1d5f36403aae3a0f1a2ee58 (patch)
tree839d4fe910c772d234fffa6bdda215017a5b90bb /tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c
parenttools/bpf: Add bpf_map_lookup_elem selftest for xskmap (diff)
downloadkernel-10a13bb40e541d8cb1d5f36403aae3a0f1a2ee58.tar.gz
kernel-10a13bb40e541d8cb1d5f36403aae3a0f1a2ee58.zip
libbpf: remove qidconf and better support external bpf programs.
Use the recent change to XSKMAP bpf_map_lookup_elem() to test if there is a xsk present in the map instead of duplicating the work with qidconf. Fix things so callers using XSK_LIBBPF_FLAGS__INHIBIT_PROG_LOAD bypass any internal bpf maps, so xsk_socket__{create|delete} works properly. Clean up error handling path. Signed-off-by: Jonathan Lemon <[email protected]> Acked-by: Song Liu <[email protected]> Tested-by: Björn Töpel <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c')
0 files changed, 0 insertions, 0 deletions