aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2018-01-11 20:29:08 -0800
committerDaniel Borkmann <[email protected]>2018-01-14 23:36:29 +0100
commit5bc2d55c6a69ef9efd11740359974b08ea11f1d7 (patch)
tree0c7ade6e8eb85c8508c44fb267e3991145e093a0 /scripts/patch-kernel
parent0a9c1991f285f829fd786fa2a9c824c2a3f87bc6 (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 <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions