linux/drivers/net/ethernet/netronome/nfp/bpf
Jakub Kicinski bd0b2e7fe6 net: xdp: make the stack take care of the tear down
Since day one of XDP drivers had to remember to free the program
on the remove path.  This leads to code duplication and is error
prone.  Make the stack query the installed programs on unregister
and if something is installed, remove the program.  Freeing of
program attached to XDP generic is moved from free_netdev() as well.

Because the remove will now be called before notifiers are
invoked, BPF offload state of the program will not get destroyed
before uninstall.

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: Daniel Borkmann <daniel@iogearbox.net>
2017-12-03 00:27:57 +01:00
..
jit.c nfp: bpf: detect load/store sequences lowered from memory copy 2017-12-01 20:59:20 +01:00
main.c net: xdp: make the stack take care of the tear down 2017-12-03 00:27:57 +01:00
main.h nfp: bpf: implement memory bulk copy for length within 32-bytes 2017-12-01 20:59:20 +01:00
offload.c nfp: bpf: flag jump destination to guide insn combine optimizations 2017-12-01 20:59:19 +01:00
verifier.c nfp: bpf: factor out is_mbpf_load & is_mbpf_store 2017-12-01 20:59:20 +01:00