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 81E5A43B00; Mon, 12 Feb 2024 13:33:03 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EC20F40695; Mon, 12 Feb 2024 13:32:54 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2050.outbound.protection.outlook.com [40.107.243.50]) by mails.dpdk.org (Postfix) with ESMTP id 8532E402A3 for ; Mon, 12 Feb 2024 13:32:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Yd078ostGKlf3ReRbJrqGFS6yqMwmLPNu25fk0qRBTuaIePr0K50tizpgVPr0L/meTf3LdXrePOhixF+bZI323Odt8mo9DS/iTSqkz3JjFb/M65rYDwd3AYY59YRiME9P92zl8LB2uGDiZzIpMHCaLN3rTijQwiIz2pXK3NHTphKdheYifS0Py4wvcb8SLMTanLmHHvejjX51uXd6oVRqSSWqa4+gF/v/eVyKO169DSvLZOru3ZC2Cyan5tnvWUIsXBmjoC68652yy2XbzCnnp/feF4+hevUXOnsj8aNtM5dQLimgvcW535kTJat6VOO0gWXDEelJaoSvg+8JmlD1w== 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=15kka2k/BTp6/hlJJNxryyMEdgn8cRp4y9lCjyeqKzg=; b=j1p2KhqHM0JG1L3pmRu90pqe6OiZsHUChDXdQDhKEejyjUNyf4TKi4ElpqdBwiB5shFSIr4hcmNXwRaKLO99ais2WDXRjV7tBaD9dqU0INtgew4K5pBalWB5UjaOCumsFHHgwJFa+8N5GGDc+fqhFw56Hp398znSHND56nYPTfAnGblzSGUkjRw02GELi4IBIqI6IpyiEzgui97BxjLXJVXd/2zHSjcXpi6IZ/rDmVbUV8KqswowNwUNqYB+2Z99jfuD23pSnf8vH+hM7nVqGivBELZHVqgU2IuUIaPrV6J8nCf6lhILFhcYPlTRhEAoMjtvzzi1uWOx5u6MF7ndVA== 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=15kka2k/BTp6/hlJJNxryyMEdgn8cRp4y9lCjyeqKzg=; b=d2Jcxr+e4DfifeYmTW8X7mhVj3hcZEr2GPMVgGxKsC+zgZffH8/QHzLTztLNa9Ajlmdrxk4E4zvzW7ecOtc5ImHoNh6++VCpb/Udeh4C5KnXrnoaUrjEoDl5e/0AfoWpOL9HxPVVX2kcryloqlyCnCIP5SyAxWO0lm0w05cEKkn1Tz3eAQJ9YBf4emuCQxDATQeEfuKYfNabBYZz8Dtn4fyGa+cfUcqtyZr1e1DGDXiMmx4MfrvpJiGU6blYgIkYi/WyEEbITneY5XJvGqyFI3Deh+mzixwzc81fHgYIOVWPpGgDMeD3cWigQX2fsNeXYtLIl7W1NRSVHXJae8iydQ== Received: from MW4P222CA0016.NAMP222.PROD.OUTLOOK.COM (2603:10b6:303:114::21) by SA1PR12MB7441.namprd12.prod.outlook.com (2603:10b6:806:2b9::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.14; Mon, 12 Feb 2024 12:32:48 +0000 Received: from CO1PEPF000042A9.namprd03.prod.outlook.com (2603:10b6:303:114:cafe::2) by MW4P222CA0016.outlook.office365.com (2603:10b6:303:114::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.42 via Frontend Transport; Mon, 12 Feb 2024 12:32:48 +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 CO1PEPF000042A9.mail.protection.outlook.com (10.167.243.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.19 via Frontend Transport; Mon, 12 Feb 2024 12:32:48 +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; Mon, 12 Feb 2024 04:32:34 -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.1258.12; Mon, 12 Feb 2024 04:32:31 -0800 From: Gregory Etelson To: CC: , , Dariusz Sosnowski , Viacheslav Ovsiienko , "Ori Kam" , Suanming Mou , Matan Azrad Subject: [PATCH v2 1/2] net/mlx5/hws: definer, update pattern validations Date: Mon, 12 Feb 2024 14:32:15 +0200 Message-ID: <20240212123216.517767-2-getelson@nvidia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240212123216.517767-1-getelson@nvidia.com> References: <20240202150617.328603-2-getelson@nvidia.com> <20240212123216.517767-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: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000042A9:EE_|SA1PR12MB7441:EE_ X-MS-Office365-Filtering-Correlation-Id: fbf1984e-d8ee-436c-54c1-08dc2bc6b8c5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7SZSkuuIYBUIDpNYQNQJteuj+upMafb18SiqYVZ1PNHrOZHkEQcJ5B7KqYOrOfUDLqw/9KR9NZXBARqS4cJhf7qhJ7ZYGzJonVou62Xr/KzUbTRO4TOtycUzexpGoGZoY3FWBUaVb+IggsvuZEp64IQOHHeBnZJIO2yAqUqbr2cKAmV5KeotFmT4pa+1f/7QC4YUfNHb2utRrEUOE8rbKuvYkLo0u5ShWHuYMaU0o9Gx6cV9NIgt9TCk6Mer58w9tJ/i8DwYxAJbnDP6wYtktaVD5yKjjifz/7MBIKmqDk1oNX5UqUmXwvnmJMae+XLtwb51xasXfbdkFC7Qa7HjAD5+dvIp1EaBkJNJB+e2X7iXEikvq2dhABmMTzYahvEPZAx2uWmSz0cXJTJbgT9Og1bOueBcnLjfx9VgheXYzqTqXEGhCT6vKeUpxgw9QZbQVSTvE50swPeqw63Oh1b9+7dS73LV6YTlAW5d252jLSbydYJc+4ftptNKEwCzpFcZy+ubDKX4w/WekeqIe7JzBP8RWWv/Odr1Okx+1u5WCa9gLLZIvV6b3QucW7SP96LYh87QtO5NmaZfUIidZONCW0fIQXyLpJaj8pS1zMOh4Zs= 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)(396003)(39860400002)(376002)(346002)(136003)(230922051799003)(82310400011)(186009)(64100799003)(451199024)(1800799012)(36840700001)(40470700004)(46966006)(15650500001)(5660300002)(2906002)(7636003)(26005)(7696005)(107886003)(2616005)(426003)(336012)(16526019)(1076003)(54906003)(83380400001)(6286002)(8676002)(316002)(6916009)(70586007)(70206006)(8936002)(4326008)(36756003)(6666004)(82740400003)(478600001)(41300700001)(86362001)(356005)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2024 12:32:48.1976 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fbf1984e-d8ee-436c-54c1-08dc2bc6b8c5 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: CO1PEPF000042A9.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7441 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 E2BIG error code when pattern is too large for definer. Signed-off-by: Gregory Etelson Acked-by: Dariusz Sosnowski --- 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