diff options
| author | 2018-01-11 20:29:08 -0800 | |
|---|---|---|
| committer | 2018-01-14 23:36:29 +0100 | |
| commit | 5bc2d55c6a69ef9efd11740359974b08ea11f1d7 (patch) | |
| tree | 0c7ade6e8eb85c8508c44fb267e3991145e093a0 /include/uapi/linux/patchkey.h | |
| parent | bpf: rename bpf_dev_offload -> bpf_prog_offload (diff) | |
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 'include/uapi/linux/patchkey.h')
0 files changed, 0 insertions, 0 deletions
