diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2017-11-03 23:56:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-05 16:26:19 +0300 |
commit | 248f346ffe9508dee0039db4ac839cb31ba3bdec (patch) | |
tree | a7fb34eb8268d73edcbcb257c679f8e98afec568 /net/sched/cls_bpf.c | |
parent | 928631e05495fa1f0e9775f555b94dbcbb4e2fb5 (diff) | |
download | linux-248f346ffe9508dee0039db4ac839cb31ba3bdec.tar.xz |
xdp: allow attaching programs loaded for specific device
Pass the netdev pointer to bpf_prog_get_type(). This way
BPF code can decide whether the device matches what the
code was loaded/translated for.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_bpf.c')
0 files changed, 0 insertions, 0 deletions