net/mlx5e: Unify esw and normal IPsec status table creation/destruction
authorPatrisious Haddad <phaddad@nvidia.com>
Thu, 21 Sep 2023 11:06:18 +0000 (14:06 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Dec 2023 06:11:51 +0000 (22:11 -0800)
commit94af50c0a9bb961fe93cf0fdd14eb0883da86721
treecd4a299a669c78da5e22b5f70222de9eac47241d
parent3d42c8cc67a8fcbff0181f9ed6d03d353edcee07
net/mlx5e: Unify esw and normal IPsec status table creation/destruction

Change normal IPsec flow to use the same creation/destruction functions
for status flow table as that of ESW, which first of all refines the
code to have less code duplication.

And more importantly, the ESW status table handles IPsec syndrome
checks at steering by HW, which is more efficient than the previous
behaviour we had where it was copied to WQE meta data and checked
by the driver.

Fixes: 1762f132d542 ("net/mlx5e: Support IPsec packet offload for RX in switchdev mode")
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_fs.c
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.h