net/mlx5e: Honor user choice of IPsec replay window size
authorLeon Romanovsky <leonro@nvidia.com>
Sun, 20 Aug 2023 17:58:56 +0000 (20:58 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Dec 2023 06:11:51 +0000 (22:11 -0800)
commita5e400a985df8041ed4659ed1462aa9134318130
tree6e5de0d690498979402d139ba170c4125b657499
parent37e4b8df27bc68340f3fc80dbb27e3549c7f881c
net/mlx5e: Honor user choice of IPsec replay window size

Users can configure IPsec replay window size, but mlx5 driver didn't
honor their choice and set always 32bits. Fix assignment logic to
configure right size from the beginning.

Fixes: 7db21ef4566e ("net/mlx5e: Set IPsec replay sequence numbers")
Reviewed-by: Patrisious Haddad <phaddad@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c
include/linux/mlx5/mlx5_ifc.h