From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C5F9943FB4 for ; Mon, 6 May 2024 13:45:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ABD6E40DC9; Mon, 6 May 2024 13:45:24 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2079.outbound.protection.outlook.com [40.107.92.79]) by mails.dpdk.org (Postfix) with ESMTP id A948340A7D; Mon, 6 May 2024 13:45:21 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g0f/6s/2W83x6h8Y2Awg80MNuLybWoXUkgMYryaqewVTyh675nn/ZwpAZY41/r0gWLDdCEmoD9bDA11j0vLuMoyfTkXf3JciaPmmUIk2cehyaSR+o3p+MEWFtZVI6KIO429Z9oOtFsw9FT+XlMAqTrR76tQATit2a+7YoFARbmfIRWcXeGXWquE7blImOOeabJrH30zpu09DONRvIh7b0egXspfl6AxcIiCXM3R3w+fUTScwu37Hwj/NoHMGLZwgsnj220OEI+/jlTX3/B1rbeRvx1AmY0Xf6KMlFN6V1bb2iLJ360UrBb3D5gnxOAE80LeNANy0Vz3BBTNs6+F7og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Jp0DahkA8HMr8I35a/0HCQnf6c830Go0v7IoGr5ZD7A=; b=P/3/UWtBgDSYFBhyrHnzTfA45UW7ZC7+QtOLEXFc4Z8KXzcgDd3kHoqudRM0S0NJzfLsTzqCJ+M7+pRaawLobwbgNf9O1TZGBnCU2yk0kTr38aO//4+Hyf4Ru+7Z3Aom1yzKzuiMfYHBLPyFM2wy25PF3zYZGRealh1pfiMuQrZFYS7dBlQETH2lvse8SP6iJifB75cxOiPhN1vLDd5S3k+s8PloCaqZ8ntawY/WXuPmV94IcEupwMsIfk0sVhmzcm61sTJmreTQtrm11OFHdb74pd6xgGHxI1o03BdaQX0opUBE62U2oh/XR7HQMHrQ3vI4333HnSkwKXY+mLZNNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Jp0DahkA8HMr8I35a/0HCQnf6c830Go0v7IoGr5ZD7A=; b=rVfHpr8+OwwwvcxgkZB5Hx1j2YMgJFvvJsJy8eVW7aaNZ0mJJuATOexAHGMaLEI44NyfwgLmAJZwNz8BnJQCTMaB/+KNLzDif8ls7TittXtZE3EzzlKklPGdW1TpZJkqE6PrZcRVi46/1UoCnP6KNrahbwBC1UhM4VJ6Ju71GMsMPTkSyZ4L5QngzSoDgE2Aa6Ww+EaUMGdIUoygcQoDxd70mpBKDErgeqp5bFLubPPQNVzvOdKzFUlCWl+OMYySMMbeq/snCbOeFx+yVecrIzIbjkuuymAxNRpgjBZM5w8LhA4C8Kirbkkln/IRA11A37riziqfA7T22JdeRrhQyA== Received: from BN1PR10CA0010.namprd10.prod.outlook.com (2603:10b6:408:e0::15) by SN7PR12MB7348.namprd12.prod.outlook.com (2603:10b6:806:29b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.41; Mon, 6 May 2024 11:45:18 +0000 Received: from BN3PEPF0000B36F.namprd21.prod.outlook.com (2603:10b6:408:e0:cafe::9c) by BN1PR10CA0010.outlook.office365.com (2603:10b6:408:e0::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42 via Frontend Transport; Mon, 6 May 2024 11:45:18 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by BN3PEPF0000B36F.mail.protection.outlook.com (10.167.243.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.0 via Frontend Transport; Mon, 6 May 2024 11:45:18 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:45:05 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 6 May 2024 04:45:04 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Mon, 6 May 2024 04:45:01 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Matan Azrad , Alex Vesker CC: , Subject: [v2 11/16] net/mlx5/hws: extending tag saving for match and jumbo Date: Mon, 6 May 2024 14:44:14 +0300 Message-ID: <20240506114419.966498-11-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240506114419.966498-1-igozlan@nvidia.com> References: <20240314114220.203241-1-igozlan@nvidia.com> <20240506114419.966498-1-igozlan@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B36F:EE_|SN7PR12MB7348:EE_ X-MS-Office365-Filtering-Correlation-Id: 672856e7-7289-4bc5-01a8-08dc6dc200b2 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|1800799015|82310400017|376005|36860700004|921011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?OOAg5+UVciFr+4rtxrf9PMOs30zsJiTPx2xLnVfHOGxQj3jiP1IxpbwJXLGz?= =?us-ascii?Q?/SeMOhUf4m+tJcwlRhxZv02CHuV/YalloUy02jkZZxu+1caVuZRSrM/mFhXx?= =?us-ascii?Q?3Bdrpnneefy99zctt5ci0OeI+Y28Y8vuzE+kaa4zosq33miZdVn7dL6HSoch?= =?us-ascii?Q?Z3ovcz3q4mmlgpjhR/ECfIoqCaR37X1pb6EjKjySfwJIyBa3QQQMrTZn5aln?= =?us-ascii?Q?NeGN5TcMqBx5HvOcbv/8jjPf3KR83zM0kgkORFY5sQhnh6xFc0DLC6ef47I5?= =?us-ascii?Q?kTh2mnAxe2gYDf24s9X7GsKZ0sH4/bkSnTF3a4+x4Lcwb+H3YsrGgsQs5PyP?= =?us-ascii?Q?USDNfv8/F4POQgSsqMGTU+ChzqaPMu7TFK/NV/pKzBpIrDLlg9IVjyK5QsJI?= =?us-ascii?Q?5seSzD2roSnrPcw6QdYhFatZWlGIRFAWa1zHhfoCKOQ1+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9FBWZ+W2e9jDqyUBC8z9RT+eSkIwo2HdfJwObmwuqBWs+uJoEHjm?= =?us-ascii?Q?v41zzpxPsE6onSyQ3UDYkDhXsSwE?= X-Forefront-Antispam-Report: CIP:216.228.118.232; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge1.nvidia.com; CAT:NONE; SFS:(13230031)(1800799015)(82310400017)(376005)(36860700004)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2024 11:45:18.0641 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 672856e7-7289-4bc5-01a8-08dc6dc200b2 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.232]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF0000B36F.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB7348 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Erez Shitrit Save the exact tag when matching over jumbo masking. Fixes: 348cdeec6472 ("net/mlx5/hws: add FW WQE rule creation logic") Cc: stable@dpdk.org Signed-off-by: Erez Shitrit Acked-by: Matan Azrad --- drivers/net/mlx5/hws/mlx5dr_rule.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_rule.c b/drivers/net/mlx5/hws/mlx5dr_rule.c index 7bcf2de55f..5b74e6d85f 100644 --- a/drivers/net/mlx5/hws/mlx5dr_rule.c +++ b/drivers/net/mlx5/hws/mlx5dr_rule.c @@ -195,8 +195,13 @@ mlx5dr_rule_save_delete_info(struct mlx5dr_rule *rule, rule->tag_ptr = simple_calloc(2, sizeof(*rule->tag_ptr)); assert(rule->tag_ptr); - src_tag = (uint8_t *)ste_attr->wqe_data->tag; - memcpy(rule->tag_ptr[0].match, src_tag, MLX5DR_MATCH_TAG_SZ); + if (is_jumbo) + memcpy(rule->tag_ptr[0].jumbo, ste_attr->wqe_data->action, + MLX5DR_JUMBO_TAG_SZ); + else + memcpy(rule->tag_ptr[0].match, ste_attr->wqe_data->tag, + MLX5DR_MATCH_TAG_SZ); + rule->tag_ptr[1].reserved[0] = ste_attr->send_attr.match_definer_id; /* Save range definer id and tag for delete */ -- 2.39.3