diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-10-18 08:10:31 -0400 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-10-23 07:14:50 -0400 |
commit | 085461c8976e6cb4d5b608a7b7062f394c51a253 (patch) | |
tree | a60e5725d2200fde0f6a9905258de453b135f7dc /net | |
parent | daf61b026f4686250e6afa619e6d7b49edc61df7 (diff) |
netfilter: nf_tables_offload: restore basechain deletion
Unbind callbacks on chain deletion.
Fixes: 8fc618c52d16 ("netfilter: nf_tables_offload: refactor the nft_flow_offload_chain function")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_tables_offload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_tables_offload.c b/net/netfilter/nf_tables_offload.c index e546f759b7a7..ad783f4840ef 100644 --- a/net/netfilter/nf_tables_offload.c +++ b/net/netfilter/nf_tables_offload.c | |||
@@ -347,7 +347,7 @@ int nft_flow_rule_offload_commit(struct net *net) | |||
347 | 347 | ||
348 | policy = nft_trans_chain_policy(trans); | 348 | policy = nft_trans_chain_policy(trans); |
349 | err = nft_flow_offload_chain(trans->ctx.chain, &policy, | 349 | err = nft_flow_offload_chain(trans->ctx.chain, &policy, |
350 | FLOW_BLOCK_BIND); | 350 | FLOW_BLOCK_UNBIND); |
351 | break; | 351 | break; |
352 | case NFT_MSG_NEWRULE: | 352 | case NFT_MSG_NEWRULE: |
353 | if (!(trans->ctx.chain->flags & NFT_CHAIN_HW_OFFLOAD)) | 353 | if (!(trans->ctx.chain->flags & NFT_CHAIN_HW_OFFLOAD)) |