]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit05639c6cf1591cd3dd561bdbc0bd1daa8dde33f4
treee1a7fbbafc0e7f63aacf5e09a97c37c2da937023
parentdea6fbac9e02f1a911d179246b95376bbd100c42
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