From patchwork Mon Jul 31 11:58:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13334480 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4E0D1182A9 for ; Mon, 31 Jul 2023 11:59:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2354C433CD; Mon, 31 Jul 2023 11:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690804739; bh=fLgxM78UsVGuP3jeEUhoDupE2dLeAwnzdpX49p+vjik=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JmA3ENO/F7L0qZmojSH4y1GN2WQ9DuDLhz3zurgqBGwVb6ybxeT+2eSHEjhIg2xEn lxIphQu7KDE4t1WgNom8x9QBApTUCdANc6JnrcX4nMFdA+aQPGR0V4DPoR/b0WNQyl pR3+l+xeqL/Z0Gqe0r9P39eyvl0/YMR31GOtjcwdP+jYX77U12ENF2jc4v1ZPkKIXN YNWSkDpaHm4GuZVCbrqhYLCGupSUUKfgk71lSCnJjms/E6BAAm+aHu1QR2doOUIO5J hJvnmW+ble7Qpc9pN8J8g76Afxofh2AuBflEwVzgBek58DroGhbNxiV2w6vSNyDxDe fqzUo9/7yewVw== From: Leon Romanovsky To: Jakub Kicinski Cc: Leon Romanovsky , Steffen Klassert , Eric Dumazet , Jianbo Liu , Paul Blakey , Raed Salem , netdev@vger.kernel.org, Paolo Abeni , Saeed Mahameed , "David S . Miller" , Simon Horman Subject: [PATCH net 3/3] net/mlx5e: Set proper IPsec source port in L4 selector Date: Mon, 31 Jul 2023 14:58:42 +0300 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: Leon Romanovsky Fix typo in setup_fte_upper_proto_match() where destination UDP port was used instead of source port. Fixes: a7385187a386 ("net/mlx5e: IPsec, support upper protocol selector field offload") Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c index dbe87bf89c0d..832d36be4a17 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_fs.c @@ -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); } }