net/mlx5e: Store all XFRM SAs in Xarray
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 2 Dec 2022 20:14:53 +0000 (22:14 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 8 Dec 2022 09:36:08 +0000 (10:36 +0100)
commit403b383a3ce3ebe12c26317978c34dd3d653c867
treeb8798b2789a00bb0527c97972d518249b97c3800
parent7bddb659bd0fc4e9022d3a3a2260540c01856e68
net/mlx5e: Store all XFRM SAs in Xarray

Instead of performing custom hash calculations, rely on FW that returns
unique identifier to every created SA. That identifier is Xarray ready,
which provides better semantic with efficient access.

In addition, store both TX and RX SAs to allow correlation between event
generated by HW when limits are armed and XFRM states.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c