net/mlx5e: IPsec/rep_tc: Fix rep_tc_update_skb drops IPsec packet
authorHuy Nguyen <huyn@nvidia.com>
Tue, 15 Dec 2020 16:58:54 +0000 (10:58 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 07:44:42 +0000 (09:44 +0200)
commit62137d1ae5f851df13e127ce16968164a19d3b26
treeff0d7fdc726cc8e7bfb0d27dadfbaf9ab85c9c4e
parent219150485d73acd7c31c5efac318bc9312251103
net/mlx5e: IPsec/rep_tc: Fix rep_tc_update_skb drops IPsec packet

[ Upstream commit c07274ab1ab2c38fb128e32643c22c89cb319384 ]

rep_tc copy REG_C1 to REG_B. IPsec crypto utilizes the whole REG_B
register with BIT31 as IPsec marker. rep_tc_update_skb drops
IPsec because it thought REG_B contains bad value.

In previous patch, BIT 31 of REG_C1 is reserved for IPsec.
Skip the rep_tc_update_skb if BIT31 of REG_B is set.

Signed-off-by: Huy Nguyen <huyn@nvidia.com>
Signed-off-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c