summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-10-18 15:10:31 +0300
committerPablo Neira Ayuso <pablo@netfilter.org>2019-10-23 14:14:50 +0300
commit085461c8976e6cb4d5b608a7b7062f394c51a253 (patch)
treea60e5725d2200fde0f6a9905258de453b135f7dc /net
parentdaf61b026f4686250e6afa619e6d7b49edc61df7 (diff)
downloadlinux-085461c8976e6cb4d5b608a7b7062f394c51a253.tar.xz
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.c2
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)
policy = nft_trans_chain_policy(trans);
err = nft_flow_offload_chain(trans->ctx.chain, &policy,
- FLOW_BLOCK_BIND);
+ FLOW_BLOCK_UNBIND);
break;
case NFT_MSG_NEWRULE:
if (!(trans->ctx.chain->flags & NFT_CHAIN_HW_OFFLOAD))