Skip to content
Commit f8931565 authored by Mark Pashmfouroush's avatar Mark Pashmfouroush Committed by Alexei Starovoitov
Browse files

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: default avatarMark Pashmfouroush <markpash@cloudflare.com>
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20211110111016.5670-2-markpash@cloudflare.com
parent 1a8b597d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment