]> 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)
commit6d1360966e6c8437651e074fb8b6d5696c751908
treee1a7fbbafc0e7f63aacf5e09a97c37c2da937023
parent656c8f22601175cdd729217ef18dd9205a8056b4
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