diff options
| author | wenxu <[email protected]> | 2019-09-11 12:53:24 +0800 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2019-09-13 10:58:10 +0200 |
| commit | 06d392cbe3db52c2ce01a2f486afd03eda75743b (patch) | |
| tree | b5289026f04f942719f95863601c6c321892d3f8 /include | |
| parent | e211aab73d4c804fe426960c8c9a7a26ec45f190 (diff) | |
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 <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'include')
| -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 |