selftests/bpf: Pass BPF skeleton to sockmap_listen ops tests
authorJakub Sitnicki <jakub@cloudflare.com>
Sat, 21 Jan 2023 12:41:45 +0000 (13:41 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 25 Jan 2023 05:32:55 +0000 (21:32 -0800)
commitb4ea530d024ca6095fc80290075893a5b7136516
treea0b305df2cb5e692762f584111564536eb9c5829
parentddce1e091757d0259107c6c0c7262df201de2b66
selftests/bpf: Pass BPF skeleton to sockmap_listen ops tests

Following patch extends the sockmap ops tests to cover the scenario when a
sockmap with attached programs holds listening sockets.

Pass the BPF skeleton to sockmap ops test so that the can access and attach
the BPF programs.

Signed-off-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20230113-sockmap-fix-v2-3-1e0ee7ac2f90@cloudflare.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/sockmap_listen.c