netfilter: nf_tables_offload: remove rules when the device unregisters
If the net_device unregisters, clean up the offload rules before the chain is destroy. Signed-off-by: wenxu <wenxu@ucloud.cn> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
@@ -77,7 +77,7 @@ int nft_flow_rule_offload_commit(struct net *net);
|
||||
|
||||
int nft_chain_offload_priority(struct nft_base_chain *basechain);
|
||||
|
||||
void nft_offload_init(void);
|
||||
int nft_offload_init(void);
|
||||
void nft_offload_exit(void);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user