Skip to content

Commit c83de17

Browse files
wenxuummakynes
authored andcommitted
netfilter: nf_tables_offload: fix check the chain offload flag
In the nft_indr_block_cb the chain should check the flag with NFT_CHAIN_HW_OFFLOAD. Fixes: 9a32669 ("netfilter: nf_tables_offload: support indr block call") Signed-off-by: wenxu <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent ab658b9 commit c83de17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nf_tables_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ static void nft_indr_block_cb(struct net_device *dev,
564564

565565
mutex_lock(&net->nft.commit_mutex);
566566
chain = __nft_offload_get_chain(dev);
567-
if (chain) {
567+
if (chain && chain->flags & NFT_CHAIN_HW_OFFLOAD) {
568568
struct nft_base_chain *basechain;
569569

570570
basechain = nft_base_chain(chain);

0 commit comments

Comments
 (0)