diff options
author | Mark Pashmfouroush <markpash@cloudflare.com> | 2021-11-10 11:10:15 +0000 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-11-10 16:29:58 -0800 |
commit | f89315650ba34ec6c91a8bded72796980bee2a4d (patch) | |
tree | c860a28dda8d188d6cdc7c863942d5dd7d77b83e /tools/testing/selftests/bpf/prog_tests/queue_stack_map.c | |
parent | 1a8b597ddabe7dc25aa9defd33949d455ee9cde8 (diff) |
bpf: Add ingress_ifindex to bpf_sk_lookup
It may be helpful to have access to the ifindex during bpf socket
lookup. An example may be to scope certain socket lookup logic to
specific interfaces, i.e. an interface may be made exempt from custom
lookup code.
Add the ifindex of the arriving connection to the bpf_sk_lookup API.
Signed-off-by: Mark Pashmfouroush <markpash@cloudflare.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211110111016.5670-2-markpash@cloudflare.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/queue_stack_map.c')
0 files changed, 0 insertions, 0 deletions