]> git.dujemihanovic.xyz Git - linux.git/commit
net/mlx5e: Add IPsec and ASO syndromes check in HW
authorPatrisious Haddad <phaddad@nvidia.com>
Sun, 24 Sep 2023 08:50:31 +0000 (11:50 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Dec 2023 06:11:52 +0000 (22:11 -0800)
commitdddb49b63d8683be81cff220b94a0196c1367b74
tree64c6c2d301f7a578118e465ec91fc2a50c6fb84d
parent5ad00dee43b98129b86930d457b983d4d04dc553
net/mlx5e: Add IPsec and ASO syndromes check in HW

After IPsec decryption it isn't enough to only check the IPsec syndrome
but need to also check the ASO syndrome in order to verify that the
operation was actually successful.

Verify that both syndromes are actually zero and in case not drop the
packet and increment the appropriate flow counter for the drop reason.

Fixes: 6b5c45e16e43 ("net/mlx5e: Configure IPsec packet offload flow steering")
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c