Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e853e3f9 authored by wenxu's avatar wenxu Committed by Greg Kroah-Hartman
Browse files

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: 9a32669f ("netfilter: nf_tables_offload: support indr block call")
Signed-off-by: default avatarwenxu <wenxu@ucloud.cn>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 17d56cef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -437,7 +437,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);