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 C288C43A51; Fri, 2 Feb 2024 16:07:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5007142E57; Fri, 2 Feb 2024 16:07:00 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2075.outbound.protection.outlook.com [40.107.93.75]) by mails.dpdk.org (Postfix) with ESMTP id 6FB6A42E6D for ; Fri, 2 Feb 2024 16:06:59 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gj5UyAvRipoYqFw5cm99KsidpPqJx+9u6fuK/ID1t2wsbixvET1FgSLgxpROvT7dYRuPYNIntfKrgpJ4Gf83hf2RR7xgiJv2bQPLmc94CI6JepKyke0xUOENqKqe6IBjIO+Ra5PNZ56mqNcyP6dxGJ+xg+RDqiufZaqLSsZBuqTdkQuI8PO2AfB0EIetFN37PhQW4fjTRxpHh0Mzvq82sea3Cu6/WOF1w9Mj5d9MYHV0wR5ZJoiGoCpJWIebBBsJU9qEMn8f29ZwAfCbOqAPXAJdt2iWNId8eiXDVH1/3hWSSAFK+paNSRg2NFuEwavPe15BDXeIemPJ+nphQbGGcg== 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=KqwrxgaTgm/BS2CnrIRPMcTZKZc2u9GaND+AI1CSdfI=; b=E7pEWc0GF0iwifb7t8VLdFVM2U+i0cE8Lue1Bi0ClYHAFPG8QnVVp2gVqHjvrUTldMUz3OKyNmTN4LpuAhuRQ///f4/1T/AEcKOSWl115N8ToBv0hNcBSK3BXEp80SPWRROdQO+wjEdsN+FkdSwcB2fTQq76YEAFd+T7xNW7MsFlQtYT1H7LB7K+/NpSt0BDWvj3i9nmuwtF+DsVj5mgYhj4BCnyxk8bOkIU/QIIe58Smx89ga/tyfSCj+1HYzsaIzIpcJz4RTVjbauquK0a/P4dO94is52Bgbsemuie39Myoop9BaHIZ0gOTIOE1lSDQqYxgNjFCElBz04fGjyUQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=dpdk.org 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=KqwrxgaTgm/BS2CnrIRPMcTZKZc2u9GaND+AI1CSdfI=; b=FBxWuXg0IydYta5U6l9izgRKceThDBGNxo7y7908LGYVz7E/ATmIfFnFkbHlFBO+lrGvnPoUgdisddNT7hBN6fZ/+MA3UQ7ptx6oYiIIsRfiaSYx+5dEAB0srDJudYUi1oKMn5qPTyFhP+84dZWo1A3JF5byUU/KBaYIfdx+4j9i0wdCKRJ4zHKbu9rDfekDEirRE53pt23E9Y9eUliZKITAH1MavSXo/e+GCMDQ7ssAy0SKfqq20SGTX7dIzrrf0+w+xCIpTyvrJKiCc+TqxHaHqR0ovDm0Ngv7hWKMJOIUABoscRbwtGwACgqnicokRjwPYIQTkVx7WUVLuJc++g== Received: from CY8PR10CA0023.namprd10.prod.outlook.com (2603:10b6:930:4f::19) by IA0PR12MB7554.namprd12.prod.outlook.com (2603:10b6:208:43e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.11; Fri, 2 Feb 2024 15:06:56 +0000 Received: from CY4PEPF0000E9D4.namprd03.prod.outlook.com (2603:10b6:930:4f:cafe::28) by CY8PR10CA0023.outlook.office365.com (2603:10b6:930:4f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.31 via Frontend Transport; Fri, 2 Feb 2024 15:06:56 +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 CY4PEPF0000E9D4.mail.protection.outlook.com (10.167.241.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19 via Frontend Transport; Fri, 2 Feb 2024 15:06:56 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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; Fri, 2 Feb 2024 07:06:39 -0800 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Fri, 2 Feb 2024 07:06:37 -0800 From: Gregory Etelson To: CC: , , Dariusz Sosnowski , Viacheslav Ovsiienko , "Ori Kam" , Suanming Mou , Matan Azrad Subject: [PATCH 1/2] net/mlx5/hws: definer, update pattern validations Date: Fri, 2 Feb 2024 17:06:16 +0200 Message-ID: <20240202150617.328603-2-getelson@nvidia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240202150617.328603-1-getelson@nvidia.com> References: <20240202150617.328603-1-getelson@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D4:EE_|IA0PR12MB7554:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ea6535d-de94-483b-6570-08dc240098ec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vw4mp4W1YtS6GEphf8KmsMLPHyrz4M2nLkLTrwNAx9H/kC6Wn78ICxGxUlQU3lw9uTYM7QY08JjLZPRIKw9mvU87b1vcp9OMdfaVJAyYqcO4ZviAWEu1wYPCbVvg3hDYtZ9x6iLo268lM2DIP5VrXxmteVBYuhhfopnHVhAXGmuRCKw4rdpZsJxB8bJMggc4fagUlX3izl5hBGqdcoEtIAI9lWqbUDsfOSAI3/ObHIROolUC1maeZbCHiRN1Qi5IQnVQAMkhloamUQCf0n8bZrSg+73XOUJJ62HWnTsn8mzCZSuiQhPez3JWRqx9dPY9NWTlVL/jyf5sVY3MH8alEvnXkbP9A9Q8KHN5aKCmqDP92tX2gby4C8zToVOktuFVtCJkxa5kiRUpRm2VSZQeAxPJLhiEdlYvPwEXjwuqlBn41nt/Rpkq4nR4VOo3rASMFo+2MDTb+PMDNZWFxEAMLjMqMLXF46sTccczciPOSBPiA8njqa1kEgFcwTX7wOgq7w7X4ooLtwikclkP/iuluIOfo6EkRw5ujqyTRmHThOC40xxk3M3QfhVmFFx6P7Moa4hJon71dlx8empEBO0ov3nfeqtYp6fP3dHQThynjKR9y11G/DEnFWIh/Hhbm37FDzfKLTSJplXeU+CoZeZiyXF6O6zhsiTQ4ZFBPtVxd4PGA/e/bYrwiPYC59ckdEPXqM8B694O8HZvYKUuuIIZd7+NaxZzcMyBMaX0xyuRaP82LQ5uu9Hy5Pm8cyMIPO3/ 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)(4636009)(346002)(136003)(39860400002)(376002)(396003)(230922051799003)(82310400011)(186009)(451199024)(64100799003)(1800799012)(36840700001)(40470700004)(46966006)(83380400001)(336012)(6286002)(2616005)(26005)(1076003)(16526019)(36860700001)(426003)(107886003)(4326008)(8936002)(5660300002)(8676002)(478600001)(7636003)(15650500001)(54906003)(6666004)(82740400003)(70206006)(7696005)(316002)(2906002)(70586007)(6916009)(86362001)(41300700001)(47076005)(356005)(36756003)(55016003)(40460700003)(40480700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2024 15:06:56.2434 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ea6535d-de94-483b-6570-08dc240098ec 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: CY4PEPF0000E9D4.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7554 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 The patch updates HWS code for upcoming extended PMD pattern template verification: Support VOID flow item type. Return E2BUG error code when pattern is too large for definer. Signed-off-by: Gregory Etelson --- drivers/net/mlx5/hws/mlx5dr_definer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/mlx5/hws/mlx5dr_definer.c b/drivers/net/mlx5/hws/mlx5dr_definer.c index 0b60479406..05b53e622a 100644 --- a/drivers/net/mlx5/hws/mlx5dr_definer.c +++ b/drivers/net/mlx5/hws/mlx5dr_definer.c @@ -2537,6 +2537,8 @@ mlx5dr_definer_conv_items_to_hl(struct mlx5dr_context *ctx, ret = mlx5dr_definer_conv_item_ptype(&cd, items, i); item_flags |= MLX5_FLOW_ITEM_PTYPE; break; + case RTE_FLOW_ITEM_TYPE_VOID: + break; default: DR_LOG(ERR, "Unsupported item type %d", items->type); rte_errno = ENOTSUP; @@ -2843,7 +2845,7 @@ mlx5dr_definer_find_best_match_fit(struct mlx5dr_context *ctx, } DR_LOG(ERR, "Unable to find supporting match/jumbo definer combination"); - rte_errno = ENOTSUP; + rte_errno = E2BIG; return rte_errno; } -- 2.39.2