diff options
author | wenxu <wenxu@ucloud.cn> | 2019-09-11 07:53:24 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-09-13 11:58:10 +0300 |
commit | 06d392cbe3db52c2ce01a2f486afd03eda75743b (patch) | |
tree | b5289026f04f942719f95863601c6c321892d3f8 /include/net/netfilter/nf_tables_offload.h | |
parent | e211aab73d4c804fe426960c8c9a7a26ec45f190 (diff) | |
download | linux-06d392cbe3db52c2ce01a2f486afd03eda75743b.tar.xz |
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/nf_tables_offload.h')
-rw-r--r-- | include/net/netfilter/nf_tables_offload.h | 2 |
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 |