Skip to content

Commit 62da083

Browse files
rleonkuba-moo
authored andcommitted
net/mlx5e: Set proper IPsec source port in L4 selector
Fix typo in setup_fte_upper_proto_match() where destination UDP port was used instead of source port. Fixes: a738518 ("net/mlx5e: IPsec, support upper protocol selector field offload") Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Link: https://lore.kernel.org/r/ffc024a4d192113103f392b0502688366ca88c1f.1690803944.git.leonro@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent c635ca4 commit 62da083

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en_accel

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,9 +808,9 @@ static void setup_fte_upper_proto_match(struct mlx5_flow_spec *spec, struct upsp
808808
}
809809

810810
if (upspec->sport) {
811-
MLX5_SET(fte_match_set_lyr_2_4, spec->match_criteria, udp_dport,
811+
MLX5_SET(fte_match_set_lyr_2_4, spec->match_criteria, udp_sport,
812812
upspec->sport_mask);
813-
MLX5_SET(fte_match_set_lyr_2_4, spec->match_value, udp_dport, upspec->sport);
813+
MLX5_SET(fte_match_set_lyr_2_4, spec->match_value, udp_sport, upspec->sport);
814814
}
815815
}
816816

0 commit comments

Comments
 (0)