mlx5 ipsec: for tx, enable SN autoincrement whenever ESN is enabled

Sponsored by:	Nvidia networking
This commit is contained in:
Konstantin Belousov
2025-08-07 10:24:22 +03:00
parent 063dc452cc
commit 7acae33bc9
+1 -1
View File
@@ -120,7 +120,7 @@ static void mlx5e_ipsec_packet_setup(void *obj, u32 pdn,
switch (attrs->dir) {
case IPSEC_DIR_OUTBOUND:
if (attrs->replay_esn.replay_window != 0)
if (attrs->replay_esn.trigger)
MLX5_SET(ipsec_aso, aso_ctx, mode, MLX5_IPSEC_ASO_INC_SN);
else
MLX5_SET(ipsec_aso, aso_ctx, mode, MLX5_IPSEC_ASO_MODE);