diff options
author | Quentin Monnet <quentin.monnet@netronome.com> | 2018-11-09 16:03:30 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-11-11 02:39:54 +0300 |
commit | eb9119471efbf730c8f830f706026b486eb701dd (patch) | |
tree | a4c4ee4d8ae8d08d90a4d15d9cab7c6468d2413d /include/linux/bpf.h | |
parent | b07ade27e93360197e453e5ca80eebdc9099dcb5 (diff) | |
download | linux-eb9119471efbf730c8f830f706026b486eb701dd.tar.xz |
bpf: pass destroy() as a callback and remove its ndo_bpf subcommand
As part of the transition from ndo_bpf() to callbacks attached to struct
bpf_offload_dev for some of the eBPF offload operations, move the
functions related to program destruction to the struct and remove the
subcommand that was used to call them through the NDO.
Remove function __bpf_offload_ndo(), which is no longer used.
Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/bpf.h')
-rw-r--r-- | include/linux/bpf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h index d1eb3c8a3fa9..867d2801db64 100644 --- a/include/linux/bpf.h +++ b/include/linux/bpf.h @@ -270,6 +270,7 @@ struct bpf_prog_offload_ops { int (*finalize)(struct bpf_verifier_env *env); int (*prepare)(struct net_device *netdev, struct bpf_verifier_env *env); int (*translate)(struct net_device *netdev, struct bpf_prog *prog); + void (*destroy)(struct bpf_prog *prog); }; struct bpf_prog_offload { |