netfilter: nf_tables_offload: restore basechain deletion
Unbind callbacks on chain deletion.
Fixes: 8fc618c52d
("netfilter: nf_tables_offload: refactor the nft_flow_offload_chain function")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
daf61b026f
commit
085461c897
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue