aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netfilter
diff options
context:
space:
mode:
authorwenxu <wenxu@ucloud.cn>2019-09-11 12:53:24 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2019-09-13 10:58:10 +0200
commit06d392cbe3db52c2ce01a2f486afd03eda75743b (patch)
treeb5289026f04f942719f95863601c6c321892d3f8 /include/net/netfilter
parentnetfilter: nf_tables_offload: refactor the nft_flow_offload_rule function (diff)
downloadlinux-dev-06d392cbe3db52c2ce01a2f486afd03eda75743b.tar.xz
linux-dev-06d392cbe3db52c2ce01a2f486afd03eda75743b.zip
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>
Diffstat (limited to 'include/net/netfilter')
-rw-r--r--include/net/netfilter/nf_tables_offload.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_tables_offload.h b/include/net/netfilter/nf_tables_offload.h
index ddd048be4330..03cf5856d76f 100644
--- a/include/net/netfilter/nf_tables_offload.h
+++ b/include/net/netfilter/nf_tables_offload.h
@@ -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