mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-20 05:43:09 +00:00
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>
This commit is contained in:
parent
b07ade27e9
commit
eb9119471e
5 changed files with 5 additions and 36 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue