net/mlx5e: Allow software parsing when IPsec crypto is enabled
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 12 Dec 2023 11:52:55 +0000 (13:52 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 24 Jan 2024 08:15:37 +0000 (00:15 -0800)
commit20f5468a7988dedd94a57ba8acd65ebda6a59723
treef627dfe4f0feb634fbd1ff5efee7e9ab5336c57a
parent20cbf8cbb827094197f3b17db60d71449415db1e
net/mlx5e: Allow software parsing when IPsec crypto is enabled

All ConnectX devices have software parsing capability enabled, but it is
more correct to set allow_swp only if capability exists, which for IPsec
means that crypto offload is supported.

Fixes: 2451da081a34 ("net/mlx5: Unify device IPsec capabilities check")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/params.c