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 32C8042635; Mon, 25 Sep 2023 10:08:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0CA3D402CC; Mon, 25 Sep 2023 10:08:27 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2047.outbound.protection.outlook.com [40.107.244.47]) by mails.dpdk.org (Postfix) with ESMTP id 108B8402B7 for ; Mon, 25 Sep 2023 10:08:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EW6S8JaZ5KMrAXRvFdmM/NAgxlUBflpmmDUadNIGz+hktF3/os9jGLgkANVGIbUx1WAvstHY+vzooJXdJ5lvvc5OHsBxBglYPqJoN0JqeXMA8UVFNz9h5KHtcdHzMk8n5+c8U9toogrfs+v4TDq9cthzUrGYuw95NeC1a1ct1ecTa6VzEEWECd2S6BcZ+STymsy203O8vAebseYWBkCSDpcq1PnKn6SjaB/WaPZtAohfUap7S6JNcR17OvZbrELqlhzhhV1pq1qptEHlBQEpY46Ikek4cmNrxbsXnljWtBWqrBELyO/pyP+CEYHeLq/Cly6psXXhnn11FAVMprhBSQ== 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=h4HuRa6dv0rG1oZwcSw8cRj4oRXk0PsmFK2iwP4AZC8=; b=DOQsfalwMXnLZl1JB0aiFhTFpJU6GjK4DjMGKPMLNlYfZmvQ4vKkF78m6gRVZz78F+uqkECbmgU7HKcZ5yPCJBdP1Bu8w7otS8fVf0j9pFAhXjcSQ+qFOProRMgr/bp8rIlhKUPW75kBcLlbXkwQTQDM+E6UmaCesswa5SLzYoM67fcFrO3aIn0MdFxu+WtD5zYYq8hzzlZm9rZU5lw4wWSlkyyHrEFG74nXYHh+5tZiWfsPR+TBuEU1YlGid/IXAa4BHPchD6CrIJoC5dm+zykuoltZvM01EHNldtAyNJPhFs6faabWswn/QxR7IrLcs991HqmlVg5AOXLUI4Cflg== 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 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=h4HuRa6dv0rG1oZwcSw8cRj4oRXk0PsmFK2iwP4AZC8=; b=p5QaEJcV1myLyLIoQCpqDqQLC87WEgqeLZQNst7K0fFJ0RTuNOsB4ty6/C2xP4K7IWB4xnjQU/RVTq8MzHJ1oNmcrvtcEMZhG/kggBCBWrhbHzcFOmGZkcn0GONmUElsfmZusPCE6cr737Jw/YF1k5jOJTqPq4DCDxxCVVSfJQoL3YKwhgVxK409p1IhfizZgqIfYSHCzpSBqtRczqmN+5odSlQVRhQi8OA8Wp03UXdh1mf+I0Fhdnb0qbQ9H6MKIa/7dRYb9ukfFhQ/78JOXeQc22SoX5wATL1wRDOsemnkvd/dvCP2ARWwYvHWtDhSVPOmENttwfdxCvapRjjWCQ== Received: from BL1PR13CA0064.namprd13.prod.outlook.com (2603:10b6:208:2b8::9) by CY8PR12MB8241.namprd12.prod.outlook.com (2603:10b6:930:76::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.20; Mon, 25 Sep 2023 08:08:22 +0000 Received: from MN1PEPF0000F0E0.namprd04.prod.outlook.com (2603:10b6:208:2b8:cafe::a2) by BL1PR13CA0064.outlook.office365.com (2603:10b6:208:2b8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.18 via Frontend Transport; Mon, 25 Sep 2023 08:08:22 +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 MN1PEPF0000F0E0.mail.protection.outlook.com (10.167.242.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.14 via Frontend Transport; Mon, 25 Sep 2023 08:08:21 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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, 25 Sep 2023 01:08:07 -0700 Received: from nvidia.com (10.126.231.35) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 25 Sep 2023 01:08:04 -0700 From: Haifei Luo To: CC: , , , , Subject: [PATCH v3 0/5] support item NSH matching Date: Mon, 25 Sep 2023 11:07:41 +0300 Message-ID: <20230925080746.16438-1-haifeil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230925020921.4607-1-haifeil@nvidia.com> References: <20230925020921.4607-1-haifeil@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail202.nvidia.com (10.129.68.7) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000F0E0:EE_|CY8PR12MB8241:EE_ X-MS-Office365-Filtering-Correlation-Id: a2741bf5-ec87-451e-a455-08dbbd9e95ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nMQpLPlXUj5a+c4N1S5YSVSO/DbXQ6H3tDDCLuQsLtVsUPbsxf4t8U+NGfL32ssOH3Qp/ZO6kc2QcNUsEI/nLo0hVKxBz59h+ZD5VwF0nhQLRcG1b+jGO4NFBm7Dz43fVZ5slqJ74kKNdI07sv1eaPKKNSYJ2j5cBLfF/tGHrhwGDlkLeT8GNPT9pdIT6Y/IAqe1zVm40qfZVAfohE0ai4xosmsYyJNAR/2TM08I53g232rUJounCS1s8M96zOThaeJCrhZivOHLAxU8AC7iuIP9ZvxAS9QWpzpLpX/a48M4D5LeEFA7M55fTi4YQgm+rn9ZUG7lOQBqKo/fA9jbeeP3NKbWa5S7iLohak1ku6lAdSBcMfPJ6VhvLCjOpGu2eZP16rpV2v0vfTlfmu294YSkjHnOxKL7UR02u34WVoonWXP0YeTTJMj4zAZX8L8LFM17hrVsIbogdPhjRBCNGErlc13qE3bIB7CshaH+7rzGTpuTOyOBAiSGJeqfXA3EiJ/XKaR7Uz1RJ+2dhvfy/YG58T78ymD1u27jnXpz0lhFC2Pxd3HKU3AT536kZGbuoCoKXMEtTdgihqVhW0GZc5gDl+MCLIdcp5mEvjsGE9L3VSzyeFL20HoC89Ee54dpc3AoPFtqwb4F4SRMUCXGSGnGP45h0DuZ3wJzF408amVhhc3uCaEg9moYTj0V5O765ZCFlU1jFZlqPADg6vfbbwirOeQ/BySCAENGzjD+b/8IKm3P/5nOIbPGFKeX1T93 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)(136003)(376002)(396003)(39860400002)(230922051799003)(82310400011)(186009)(451199024)(1800799009)(46966006)(40470700004)(36840700001)(83380400001)(7696005)(2616005)(47076005)(6666004)(5660300002)(478600001)(70206006)(6286002)(336012)(8676002)(2906002)(16526019)(426003)(54906003)(316002)(4326008)(26005)(6916009)(107886003)(70586007)(41300700001)(8936002)(40460700003)(36756003)(356005)(36860700001)(55016003)(86362001)(1076003)(7636003)(40480700001)(82740400003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2023 08:08:21.6593 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a2741bf5-ec87-451e-a455-08dbbd9e95ca 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: MN1PEPF0000F0E0.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8241 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 NSH can be matched using the existed item: RTE_FLOW_ITEM_TYPE_NSH. NSH fields matching is not supported. Add support for configuring VXLAN-GPE's next protocol. The CLI is: vxlan-gpe protocol is . Add support for matching item NSH. The CLI is: nsh Add support for HCA attribute query of NSH. Enhance the validation for the case matching item NSH is supported. Add NSH support in net/mlx5. V2: Add Ack info in commit message. V3: Add more Ack in commi message. Haifei Luo (5): app/testpmd: support for VXLAN-GPE's next protocol common/mlx5: extend HCA attribute query for NSH net/mlx5: enhance the validation for item VXLAN-GPE app/testpmd: support for NSH flow item net/mlx5: add support for item NSH app/test-pmd/cmdline_flow.c | 26 ++++++++++++++ drivers/common/mlx5/mlx5_devx_cmds.c | 3 ++ drivers/common/mlx5/mlx5_devx_cmds.h | 1 + drivers/common/mlx5/mlx5_prm.h | 4 ++- drivers/net/mlx5/mlx5_flow.c | 52 ++++++++++++++++++++++++---- drivers/net/mlx5/mlx5_flow.h | 6 ++++ drivers/net/mlx5/mlx5_flow_dv.c | 13 ++++++- 7 files changed, 96 insertions(+), 9 deletions(-) -- 2.27.0