aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_vlan.h
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@plumgrid.com>2015-05-27 15:30:39 -0700
committerDavid S. Miller <davem@davemloft.net>2015-05-30 17:51:13 -0700
commit37e82c2f974b72c9ab49c787ef7b5bb1aec12768 (patch)
tree9d998b6f8ae66f6e50c48fff7136c3b93a157021 /include/linux/if_vlan.h
parenthv_netvsc: Properly size the vrss queues (diff)
downloadlinux-dev-37e82c2f974b72c9ab49c787ef7b5bb1aec12768.tar.xz
linux-dev-37e82c2f974b72c9ab49c787ef7b5bb1aec12768.zip
bpf: allow BPF programs access skb->skb_iif and skb->dev->ifindex fields
classic BPF already exposes skb->dev->ifindex via SKF_AD_IFINDEX extension. Allow eBPF program to access it as well. Note that classic aborts execution of the program if 'skb->dev == NULL' (which is inconvenient for program writers), whereas eBPF returns zero in such case. Also expose the 'skb_iif' field, since programs triggered by redirected packet need to known the original interface index. Summary: __skb->ifindex -> skb->dev->ifindex __skb->ingress_ifindex -> skb->skb_iif Signed-off-by: Alexei Starovoitov <ast@plumgrid.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions