netfilter: nf_tables_offload: fix check the chain offload flag
Subsystems (2)
PATCH v2 1/1 netfilter: nf_tables_offload: fix check the chain offload flag
From: wenxu <[email protected]>
In the nft_indr_block_cb the chain should check the flag with NFT_CHAIN_HW_OFFLOAD.
Fixes 9a32669fecfb ("netfilter: nf_tables_offload: support indr block call")
Signed-off-by wenxu <[email protected]>
---
v2: add missing fix tag
net/netfilter/nf_tables_offload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nf_tables_offload.c +1 -1
@@ -564,7 +564,7 @@ static void nft_indr_block_cb(struct net_device *dev,mutex_lock (&net->nft.commit_mutex); chain =__nft_offload_get_chain (dev); -if (chain) { +if (chain && chain->flags &NFT_CHAIN_HW_OFFLOAD ) {struct nft_base_chain *basechain; basechain =nft_base_chain (chain);
Signature · 1 line
1.8.3.1
Quoted 4 lines · On Sun, Jan 19, 2020 at 01:18:30PM +0800, [email protected] wrote:
From: wenxu <[email protected]>
In the
nft_indr_block_cbthe chain should check the flag withNFT_CHAIN_HW_OFFLOAD.
Applied.