netfilter: nf_tables_offload: fix check the chain offload flag
authorwenxu <wenxu@ucloud.cn>
Sun, 19 Jan 2020 05:18:30 +0000 (13:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Feb 2020 21:22:52 +0000 (21:22 +0000)
commite853e3f9f9d469c558791549614f1da10c6f7194
tree318ade110f4c5ea89db10e88aa5d5c11ba71285a
parent17d56cef7f93ac315f49e69c9fe2a0b7c8e745eb
netfilter: nf_tables_offload: fix check the chain offload flag

[ Upstream commit c83de17dd6308fb74696923e5245de0e3c427206 ]

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 <wenxu@ucloud.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_offload.c