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)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 May 2021 18:54:36 +0000 (11:54 -0700)
commitc07274ab1ab2c38fb128e32643c22c89cb319384
treeb373b7a9d166b2fd99bd712fac58993fc8be9686
parentb973cf32453f78d8661a640d0a0167d1d41ea331
net/mlx5e: IPsec/rep_tc: Fix rep_tc_update_skb drops IPsec packet

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>
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c