]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a489d8ea77a987580f843a908e4979876f76045
treeb373b7a9d166b2fd99bd712fac58993fc8be9686
parenta9c81a5de17e9756a89c5066d82b46f9b1eb0077
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