diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-01-12 05:29:08 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-01-14 23:36:29 +0100 |
commit | 5bc2d55c6a69ef9efd11740359974b08ea11f1d7 (patch) | |
tree | 0c7ade6e8eb85c8508c44fb267e3991145e093a0 /tools/include | |
parent | bpf: rename bpf_dev_offload -> bpf_prog_offload (diff) | |
download | linux-5bc2d55c6a69ef9efd11740359974b08ea11f1d7.tar.xz linux-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