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 2B21143B01; Mon, 12 Feb 2024 14:59:48 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3A83402D9; Mon, 12 Feb 2024 14:59:47 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2073.outbound.protection.outlook.com [40.107.92.73]) by mails.dpdk.org (Postfix) with ESMTP id 23108402D0 for ; Mon, 12 Feb 2024 14:59:46 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PgodGvB5LFtnVtxysXZMzA/bEZrlKUnyyg9xTF/4eVMn+hu4LCjRdO0NQqdSFdMO38dQNLGFxX+vljlgl96OQ7dgr2VS71sMbgpG0lDwgdW7PsiZiHt9EYVLkDx1xytRtUZskW5lYdAVA/UKYzhEtG4+m/SdzeRFBKsGG5SYSrfkcCGv5/90PhO6Ar4vnHtBO8yqmYHtRDm2j2CDBKraUKnUGfCJ6acX1pPG+Ptb19WsNzAWrPsurqjtdnKUKXbDeMK0FCRndMzl/xDQqD6yciixxXo6h+wGJT7F0DuXxViNJk5yFo8g7QPzG/gydTmXFbQ9ly8vDO6jJhe2JgQ8BQ== 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=nZwLo8jAaDgeFvmGlkpxhbfWgwuDIXCxYtUFrcAKjZ8=; b=FXwytFwKjb6RHuMmY6ArT4WvBuyorBVAbAmD0jqzDomFyNWjosV+h9WcHinacTIie9qhfJK0mys4EXKQbruAXeUqjwujQNGjZYkoCI/fEIag0Vh+XdqdDYFhXMZ8WCMdmXZCkj2BEw6YyUugA9A634I1/5Y0ota+7xUdaYnu1bB8guM6svuvKcCFk5ipwZ/59QPLujv5FIaRXCH3qczSgl3I+94gxFxL35eK3vL1m3naXAdlvYwn53AIlkOYI9iANE7eyZdgKu2dyXtMj9pMuXUrBgkmdGtrz7+lyWwo8CY1oEGOAH2GHenQOhdfJ6OVv71nDkajiEp3DGK3xn9VNQ== 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=nZwLo8jAaDgeFvmGlkpxhbfWgwuDIXCxYtUFrcAKjZ8=; b=dplAJNp+6ENroNi2hSQYMc1GFhPV1GjtFEr3H9e3wDzVyCLOpJ/oRPZ0TpdhF1PFsqSYLf4H4Cq7WcOqNmTMNSNCfyMi3icfR7bX9TzlXIw61gshWDrLC8PksGUbylxbQU7FEC/Tkl6Gs9ER6IA/9zCOJzrzQTgXp5r0ymxKC2G0IB8jNlfnFhUkoPbHNkjgHSIgf7xA7ekO5ghWdElCF6YFRkkx38L7riTCKW3PhirBn6jjxN7zRlbl6W88mxbLomvfre6hvQzEe4/WrMt0Y4hU2bvTo1ds/+95Kpt+tMETEapEPT1enedyFVR5L9Nnup9Rc6OehldWrkCHZG1fOQ== Received: from MN2PR07CA0028.namprd07.prod.outlook.com (2603:10b6:208:1a0::38) by SJ0PR12MB7067.namprd12.prod.outlook.com (2603:10b6:a03:4ae::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25; Mon, 12 Feb 2024 13:59:43 +0000 Received: from BL6PEPF0001AB52.namprd02.prod.outlook.com (2603:10b6:208:1a0:cafe::4e) by MN2PR07CA0028.outlook.office365.com (2603:10b6:208:1a0::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.38 via Frontend Transport; Mon, 12 Feb 2024 13:59:43 +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:42 +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:33 -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:29 -0800 From: Gregory Etelson To: CC: , , Dariusz Sosnowski Subject: [PATCH v3 0/2] net/mlx5: update pattern validations Date: Mon, 12 Feb 2024 15:59:09 +0200 Message-ID: <20240212135911.529237-1-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: 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_|SJ0PR12MB7067:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c13f8ce-9f93-405a-548f-08dc2bd2dd00 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TaBUPzmYBVle167iwTUbIqaAbfLQLLvEizGzN9+12zlWtagfnMiOzD/UWsglG+zheTVwEdwfAByHVMwhaw0cfk9gh1+d/ONvn8BWfJXWY+UOofKzDxChx5FbLyV+x+sML5WRhZ5BRt/CQpU48qyjQ2sLBhjfPqAp6jwISXvgln5IUzokgAAZyxM/WU/9S27ti+gKxRSgLMxm/8lCKKUuV1rbE/mxDUbfK1apFejzGAi4TSf03YLD2hVy2+wFeyOt4vo48wclNRbDpvFCsCFAWiGRAQ/y0b7UaufXGllt2fFg39Mc6TAwWkoIi7+lot6N53hp2N3GcYa8jnBbYq3m7YafE8uJ403deHgsko7NJytOSQ4Bnx2WuFUG3jByXOudmqrz/GnqcAcDa+M3giTRqu5zcJ75dlp6FCjMOmm22jEvBgQM7OAuNWcwgnTWreVAADM7wh3oq9jpQJRd5Own8FAp4h/3bKouiOu2Q3Fc1JEWo7D11EQ3SiARhPYoqg+mEV5d8ebKyscv8dSOAAIpEsdCZJM77JnYrHLW/LiykAXvDupM4IZ76rKsOh2Qb+FinrGDrLaseeSWRVr4eRi8IoJ4eyWu2waNbLI2+twhtXw= 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)(346002)(39860400002)(376002)(136003)(396003)(230922051799003)(186009)(82310400011)(64100799003)(451199024)(1800799012)(40470700004)(46966006)(36840700001)(356005)(83380400001)(7636003)(86362001)(82740400003)(316002)(6916009)(478600001)(54906003)(70206006)(70586007)(26005)(1076003)(16526019)(2616005)(426003)(336012)(7696005)(6286002)(6666004)(107886003)(36756003)(4744005)(55016003)(41300700001)(8676002)(4326008)(15650500001)(8936002)(2906002)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2024 13:59:42.8649 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c13f8ce-9f93-405a-548f-08dc2bd2dd00 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: SJ0PR12MB7067 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 PMD updates `rte_errno` if pattern template validation failed: E2BIG - pattern too big for PMD ENOTSUP - pattern not supported by PMD ENOMEM - PMD allocation failure Gregory Etelson (2): net/mlx5/hws: definer, update pattern validations net/mlx5: improve pattern template validation drivers/net/mlx5/hws/mlx5dr_definer.c | 4 +- drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_flow_hw.c | 121 ++++++++++++++++++++++++++ 3 files changed, 125 insertions(+), 1 deletion(-) Acked-by: Dariusz Sosnowski -- 2.39.2