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:
wenxu
2019-09-11 12:53:24 +08:00
committed by Pablo Neira Ayuso
parent e211aab73d
commit 06d392cbe3
3 changed files with 52 additions and 6 deletions

View File

@@ -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