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 47DFC43CA5; Thu, 14 Mar 2024 12:44:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0AD9842EAF; Thu, 14 Mar 2024 12:43:50 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2083.outbound.protection.outlook.com [40.107.92.83]) by mails.dpdk.org (Postfix) with ESMTP id C4A3A42EE4 for ; Thu, 14 Mar 2024 12:43:47 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NrpjclTLGiseMxcAMbixuFiHyw5Rjilpr8UxdneZFWeHIvkl2Q3a49rkSVKK14IgX2H0U4TOJrKsJkfP5viX9wD7mxSisqCVpdDoYg8O9/CpcUHRhqY4iGvmj/+1EOu9W2MiTP1RRkcWf+zdV8S54x2JFghOzwzhCSJjciEHD1G2n3fHY23wWqs2K84gHedXsv6/8gxzCqf+pSICmcTFz1VqBSeXsLHinkxgmMQ8sruiRp22zEqSnZzkZa9fOVf8kSRnEZ7ZRrPS2XeqgMDWnonqfKpIzJ3AbHqGlhBi2bKi6Iy4W1TxX3iFA54Ag5uo61FQBPDDZf0REZ+P/9PY+Q== 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=5RXSfAXvJ5Cy7G2gUulUEmejxzyCccaNk7J+hVXIZBM=; b=WZGoSjIVoBNBdxrLdfYiuzGN2jbOE4EnLXRNSQrDoz+ZMTToBfXlZGfF4ZIt76c6S4AE7crz4yoPFB8XuMvjUP+EobL+sola88sNmQFXGEsQxVN5m5jaHH0QytjXmp9oxSEQ5zX6/Mjqkf/J9iT2iu75U5RehzStJwh4sY5fOCRkjkn3n8ss8PNDYTSybDKO1jsOMKmzj18vqbkFheBe/g/lVBc2vWgr0XpxkEo49OI4b5MA56bm8Rm5f4Fjbgxw/KGLUaIJAaBEXLNXuKN8UI5SQ5bAOai5+gDMLuaTShmtAuc/BKaXFtQ4nZU6G4NyxciiUST72TDi2DgId4RMJQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=5RXSfAXvJ5Cy7G2gUulUEmejxzyCccaNk7J+hVXIZBM=; b=Ohb8LgiFXxRjKCak8N43mqpjLZN0yD2j9V0xHQEsCzbCJHImD3HIuxQphTWF4H8TSjVW+vqI9pPZ9jjsNUW83sTqxtQPKGEdPHdZtck6Ha5Fw8kXZZsu0H3k12YCJ5Cp0qAifuiZlqiN93vDPuRA+86jcqZvram8iKThry/WLyIQ5ZqsTEuiSMTZ6w8L3zjptbqYExugiSvPnSFz86XI/x54SkDPXdLfvpLQcvgP0Xran37V3Vj5dmRnzwFmsvNDJ8mjQaVGGfd4v9WrKncULB5DG25D4mJShZbSUcyFOLI9DZJTmFSGlvvd/2LXBQIs2ih2TOim/lolRgI6z03Wig== Received: from DS7PR03CA0179.namprd03.prod.outlook.com (2603:10b6:5:3b2::34) by PH7PR12MB7257.namprd12.prod.outlook.com (2603:10b6:510:205::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.20; Thu, 14 Mar 2024 11:43:44 +0000 Received: from CY4PEPF0000E9DB.namprd05.prod.outlook.com (2603:10b6:5:3b2:cafe::f3) by DS7PR03CA0179.outlook.office365.com (2603:10b6:5:3b2::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.21 via Frontend Transport; Thu, 14 Mar 2024 11:43:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CY4PEPF0000E9DB.mail.protection.outlook.com (10.167.241.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.12 via Frontend Transport; Thu, 14 Mar 2024 11:43:43 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 14 Mar 2024 04:43:29 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail204.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Thu, 14 Mar 2024 04:43:29 -0700 Received: from nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12 via Frontend Transport; Thu, 14 Mar 2024 04:43:26 -0700 From: Itamar Gozlan To: , , , , , , , Dariusz Sosnowski , Ori Kam , Suanming Mou , Matan Azrad CC: , Subject: [PATCH 12/13] net/mlx5/hws: extending tag saving for match and jumbo Date: Thu, 14 Mar 2024 13:42:19 +0200 Message-ID: <20240314114220.203241-12-igozlan@nvidia.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240314114220.203241-1-igozlan@nvidia.com> References: <20240314114220.203241-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: CY4PEPF0000E9DB:EE_|PH7PR12MB7257:EE_ X-MS-Office365-Filtering-Correlation-Id: cd6fe8e9-1657-4fb8-6120-08dc441c00a6 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; X-Microsoft-Antispam-Message-Info: /4+0SVaEySYF+L35P5G4aKyv3rRXeJE6s8I3NIgQOPeu91Uzq75srMbWfNxPuiIbzQ2fakHyQd++q3V3vFcyofF2ys0babQaeSBalPkZR08zouEOouGhDq1Jhx7fABGNA9LujP09exru+aolrUlgjISSZ8nQdkWCB2gUaL1l+sIKCGQ6eHoQOMl7jN1m9EpIYd7Qlbgy8KCPrpX+gnils5LgYxeQJydibx+jA5imQSYRo/EbnIYhITRvkjlMiOYQASo53qvKbnJ782xqfqjHnn8Vz1ALuO6sLbGgfYR6kTjkkP4WF0McUayuJcvFvrHEI7O0G016Yy8JGQtVDGTjuC17G2raRBjDGwC48ENK+hwzq0/kZDoMBw9MW7ThlDYFMIHF5bUkQcz1wRxoGrDqG2UzvBdImZGMS3SCcnwwe1vXFpVMcfMhxLzVmp4z9Izt7tdMcmSnFSTF2dJ0zlg/mDpWb+eioIWRRs7pUawzBLwFC6xKAAK1923YlQPc5nUOd55kSwU22QglzI5T+bRz3iZg1MGesNaWnig7KkV/mAbAqiCueL5jkF4ppYcJdvYx+jfEhmEq7o2cJCtnZkF8UQiYd9iKmWY8y2HCffJuZ1yet9ikfrr+49VzR09pJj09se+cw1NcMy8Jkv+LBkgUItGrblnR6vdkKKVVuvttXaQ1yPeGJaF/Xstsw2p3u5jOYFhzrfsMBAvN+o0ZAGNNa2vKz0ryWlXriCv4TcuuNCkWl53G+tz8WtoHvI1k7VVb8m3FZD+BZrlsLfufJwpgfA== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(376005)(36860700004)(82310400014)(1800799015)(921011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2024 11:43:43.9507 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd6fe8e9-1657-4fb8-6120-08dc441c00a6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9DB.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7257 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-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") 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 3e8e90ba76..d56677a1a5 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