selftests/bpf: Add tests for accessing ingress_ifindex in bpf_sk_lookup
authorMark Pashmfouroush <markpash@cloudflare.com>
Wed, 10 Nov 2021 11:10:16 +0000 (11:10 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 11 Nov 2021 00:29:59 +0000 (16:29 -0800)
commit8b4fd2bf1f47c3e3a63c327fca2ad5c4e2691ef8
treee1a7fbbafc0e7f63aacf5e09a97c37c2da937023
parentf89315650ba34ec6c91a8bded72796980bee2a4d
selftests/bpf: Add tests for accessing ingress_ifindex in bpf_sk_lookup

A new field was added to the bpf_sk_lookup data that users can access.
Add tests that validate that the new ingress_ifindex field contains the
right data.

Signed-off-by: Mark Pashmfouroush <markpash@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211110111016.5670-3-markpash@cloudflare.com
tools/testing/selftests/bpf/prog_tests/sk_lookup.c
tools/testing/selftests/bpf/progs/test_sk_lookup.c
tools/testing/selftests/bpf/verifier/ctx_sk_lookup.c