Skip to content

Commit 7acae33

Browse files
committed
mlx5 ipsec: for tx, enable SN autoincrement whenever ESN is enabled
Sponsored by: Nvidia networking
1 parent 063dc45 commit 7acae33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/dev/mlx5/mlx5_accel/mlx5_ipsec_offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static void mlx5e_ipsec_packet_setup(void *obj, u32 pdn,
120120

121121
switch (attrs->dir) {
122122
case IPSEC_DIR_OUTBOUND:
123-
if (attrs->replay_esn.replay_window != 0)
123+
if (attrs->replay_esn.trigger)
124124
MLX5_SET(ipsec_aso, aso_ctx, mode, MLX5_IPSEC_ASO_INC_SN);
125125
else
126126
MLX5_SET(ipsec_aso, aso_ctx, mode, MLX5_IPSEC_ASO_MODE);

0 commit comments

Comments
 (0)