Skip to content

Commit

Permalink
netfilter: nf_tables_offload: restore basechain deletion
Browse files Browse the repository at this point in the history
Unbind callbacks on chain deletion.

Fixes: 8fc618c ("netfilter: nf_tables_offload: refactor the nft_flow_offload_chain function")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Pablo Neira Ayuso committed Oct 23, 2019
1 parent daf61b0 commit 085461c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nf_tables_offload.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 085461c

Please sign in to comment.