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 C4CA443B01; Mon, 12 Feb 2024 14:59:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C3E8B406B7; Mon, 12 Feb 2024 14:59:51 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on2087.outbound.protection.outlook.com [40.107.96.87]) by mails.dpdk.org (Postfix) with ESMTP id 2590D4068A for ; Mon, 12 Feb 2024 14:59:51 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IMdS5gJuk17dQvm8TU4eZ3QJd9Y8bGISXI50ecT57GFOeIwu7H/gTWrRzkX+K3Fb6yz421A06gbB8Zv9yCzsWt/rukZT2iIeSRZcAHK7lRHqIOVFS8MhdGieSPJGUCTRZc4oFAx8b0EWqQywPelbKDuIeBuc8hULKEpZMOende5hMECtNzhCFSE62aakyx2KTkRIcDrgJawW1C3zmYerEyremh5UwbU97qC9pSgbmtf3X47hRdJTo4fShxGTAIk0f0FAt+cdlXhkpgMQNOQ2VCRYz0vJt8Tiq15wawjlpSIHa7VjjNRqxoX+bzxWqsXeiMCil/YoR7PfKi91hyv7SA== 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=GDf9WbToilONrD966lzIwN5zihRScA7lJKicOSbSQ2CzUXzNNNyw7mQ0wqnlMLcBraKCV41RR+4kj7TCFxSZTPwlWEuPi2LyohCm+sHt86qhh071N/tayk2YEkBrF6ccqukDSr6n5kaHlJy09lGo48b4o3EXbAulQRMOe6uu8GjME0vPe6YCxFHRpYxG5kiKIfOqXwRRwOYVpI860Okax6G8bG1ZM3fBdSAjgDB5RBVWnkLAHs6lVRWQ8Dt2pwRyHBLxwMr+UZ2XHdz+yJQu3qzTW3wanZkbUTHBu3uqqxNrLm1TM/RyQneazwSY/rwQCVhwCrCuFXVF11cRhrm8fQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=aGskmn0IsCet6vpyOXY0QgGmJHcIQiM0gb7MG82OjeASZY/PKo6B7wgv427HmfdDgJJogo4e+aUjepp15RRhnR0YvcnhwZWHoZUv8Xmbn7mTammGE1tn7iu6e/ypzF8YDSehuXmSwm+Jo6Fnu6w5uc9mFb6++gwLMMH3a71lEydVlvJwYQEf3lGo+PZ3CMvt14CRiNwLGVOiNX8HSSGHPoIuFdp2UfNWwym1/sSmJKlXMYDPfY8qn7IsDXtYRcQd7NRnutx3y7Aw9ZVyS8tt5qGTz++INQxPIYUrqXbjB66Bivqis308YsOWI8pq7tg1Jv1Cw4Gk8Rz5IyC4Ptr71Q== Received: from MN2PR07CA0019.namprd07.prod.outlook.com (2603:10b6:208:1a0::29) by PH7PR12MB5784.namprd12.prod.outlook.com (2603:10b6:510:1d3::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.24; Mon, 12 Feb 2024 13:59:48 +0000 Received: from BL6PEPF0001AB52.namprd02.prod.outlook.com (2603:10b6:208:1a0:cafe::84) by MN2PR07CA0019.outlook.office365.com (2603:10b6:208:1a0::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39 via Frontend Transport; Mon, 12 Feb 2024 13:59:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL6PEPF0001AB52.mail.protection.outlook.com (10.167.241.4) 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 13:59:48 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) 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 05:59:38 -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 05:59:33 -0800 From: Gregory Etelson To: CC: , , Dariusz Sosnowski , Viacheslav Ovsiienko , "Ori Kam" , Suanming Mou , Matan Azrad Subject: [PATCH v3 1/2] net/mlx5/hws: definer, update pattern validations Date: Mon, 12 Feb 2024 15:59:10 +0200 Message-ID: <20240212135911.529237-2-getelson@nvidia.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240212135911.529237-1-getelson@nvidia.com> References: <20240202150617.328603-1-getelson@nvidia.com> <20240212135911.529237-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: BL6PEPF0001AB52:EE_|PH7PR12MB5784:EE_ X-MS-Office365-Filtering-Correlation-Id: 69e2989b-8f3b-4e6f-30ba-08dc2bd2e045 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PZgI3PEHgPbFfHwHszMN6YtUX6ni34TJYZn5hkFAqra7pNIhYzuUra0uf6kgLcV0Zljqm4GB34QZo+XcLtNH9bVNvDP9sFPJJdt1FxAGCll/i7A0SfSzk9ofOrOnykeVyJV8jDZVFtLpaNfvluGAvncYWwcAde+1l5IPytrJMw2A2B1On1KsswmAsYrCDsBpcxpHr6PfbyfBKiXM+2vwgJXo1ass5m+DGhT3l20B2NuEievf/lEHe8Y9EgX2CsieOIoRx6mFHc+VOK/WqXdWapw/ZQhTVgsCaUNMdb9wPryXF5oYBCL7Plp6c99ILhnds0eyyl0Zuw1wRrL91jg/oNGdbvGqOUkXHYpa4hLBiOIaST4Rf6/BeBkohPkrwo9VU30ho8THgXoNvtdKsENm36s4rOkHAb4DDQdt9eTupIGuy7py9BfomSplCWgtvJIqvEsB+m4i8MUJCTkt9huTRyK+TTyTbE4LMPtkvAxfAW64EyLtuzHu3S54Z76kovCZrRGIWl7R+KWJiPVjGyl9P+A0QaapsNobWolOQ4KGV2FvZGTjBUsEeaSp7Zbx5fbVRfVIX097Avt9XPTCYvLzihsaP3RTZ25fl7dwzMurj6I= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(396003)(376002)(136003)(39860400002)(346002)(230922051799003)(64100799003)(451199024)(1800799012)(82310400011)(186009)(46966006)(36840700001)(40470700004)(4326008)(8936002)(8676002)(70586007)(70206006)(316002)(36756003)(6916009)(5660300002)(54906003)(15650500001)(2906002)(6666004)(82740400003)(356005)(7636003)(426003)(336012)(2616005)(107886003)(6286002)(7696005)(83380400001)(478600001)(1076003)(86362001)(26005)(16526019)(41300700001)(55016003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2024 13:59:48.3493 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 69e2989b-8f3b-4e6f-30ba-08dc2bd2e045 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.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB52.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5784 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