forked from mirrors/linux
		
	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: a7385187a3 ("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>
			
			
This commit is contained in:
		
							parent
							
								
									c635ca45a7
								
							
						
					
					
						commit
						62da08331f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -808,9 +808,9 @@ static void setup_fte_upper_proto_match(struct mlx5_flow_spec *spec, struct upsp | |||
| 	} | ||||
| 
 | ||||
| 	if (upspec->sport) { | ||||
| 		MLX5_SET(fte_match_set_lyr_2_4, spec->match_criteria, udp_dport, | ||||
| 		MLX5_SET(fte_match_set_lyr_2_4, spec->match_criteria, udp_sport, | ||||
| 			 upspec->sport_mask); | ||||
| 		MLX5_SET(fte_match_set_lyr_2_4, spec->match_value, udp_dport, upspec->sport); | ||||
| 		MLX5_SET(fte_match_set_lyr_2_4, spec->match_value, udp_sport, upspec->sport); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Leon Romanovsky
						Leon Romanovsky