aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-01-11 20:29:08 -0800
committerDaniel Borkmann <daniel@iogearbox.net>2018-01-14 23:36:29 +0100
commit5bc2d55c6a69ef9efd11740359974b08ea11f1d7 (patch)
tree0c7ade6e8eb85c8508c44fb267e3991145e093a0 /tools/include
parentbpf: rename bpf_dev_offload -> bpf_prog_offload (diff)
downloadlinux-dev-5bc2d55c6a69ef9efd11740359974b08ea11f1d7.tar.xz
linux-dev-5bc2d55c6a69ef9efd11740359974b08ea11f1d7.zip
bpf: offload: factor out netdev checking at allocation time
Add a helper to check if netdev could be found and whether it has .ndo_bpf callback. There is no need to check the callback every time it's invoked, ndos can't reasonably be swapped for a set without .ndp_bpf while program is loaded. bpf_dev_offload_check() will also be used by map offload. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/include')
0 files changed, 0 insertions, 0 deletions