Skip to content

Commit 159846f

Browse files
Lama Kayalkuba-moo
authored andcommitted
net/mlx5: HWS, Enable IPSec hardware offload in legacy mode
IPSec hardware offload in legacy mode should not be affected by the steering mode, hence it should also work properly with hmfs mode. Remove steering mode validation when calculating the cap for packet offload, this will also enable the missing cap MLX5_IPSEC_CAP_PRIO needed for crypto offload. Signed-off-by: Lama Kayal <[email protected]> Reviewed-by: Jianbo Liu <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Reviewed-by: Michal Swiatkowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2b0ba7b commit 159846f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ u32 mlx5_ipsec_device_caps(struct mlx5_core_dev *mdev)
4242

4343
if (MLX5_CAP_IPSEC(mdev, ipsec_full_offload) &&
4444
(mdev->priv.steering->mode == MLX5_FLOW_STEERING_MODE_DMFS ||
45-
(mdev->priv.steering->mode == MLX5_FLOW_STEERING_MODE_SMFS &&
46-
is_mdev_legacy_mode(mdev)))) {
45+
is_mdev_legacy_mode(mdev))) {
4746
if (MLX5_CAP_FLOWTABLE_NIC_TX(mdev,
4847
reformat_add_esp_trasport) &&
4948
MLX5_CAP_FLOWTABLE_NIC_RX(mdev,

0 commit comments

Comments
 (0)