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 1362043016; Wed, 9 Aug 2023 09:41:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ECDA540DDB; Wed, 9 Aug 2023 09:41:22 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2063.outbound.protection.outlook.com [40.107.243.63]) by mails.dpdk.org (Postfix) with ESMTP id 0722240691 for ; Wed, 9 Aug 2023 09:41:20 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PN0mxHhmZIbeHXg7XdG+Q99o2BTRbnqWOeSftDPxAmdgJ9OmI5OrIxkZ79O6v3fms9XdfdUJZHHsiGdwx027XxwYPePat5CUQxH0DZwx3PTwEFeOxlkL21Vy8a5rFfjz3mCjnFDvQQ2tsh4IcWY6mspUgAG2Uc+FuKLY1BKhKgT4vypBS7TdHzrsPVSEdj7kcXO2ixnPZjSxTwwLn33SE8ntJxREpWj8w823nqeIykQPGA9EgmnX8e605PLKl5JVurUO0E8S2u/wCRrNLZCZnWflt6s87ROWoaFfSMnM9poXMHN+3bRfF7136Lilpr7VJ/Vl3PUDnTCUM6B7obTvNg== 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=jJ+JQk2kXwchwC36KH5oMHfEgeSSZpgqM+aUZlbF/m4=; b=a0nYLRgjcQPEg8u+xjvXRVs9/PZlOHkn5CYPFVcMaw6H8qOdj6v/lBGjkyjkMyRO1zsse1A0C9PnU+fVhEdVyINhhD2m2xl9FPsOvTfWL5+QiGCZd4DyL9AwPKMAEprMvUTsj97FzvfFhjv549UbdfWt6ebimfUN7zupUrJesUakV0s1KLbPrWHDGu6cxI8TDgfvDYk8HQgeh0gNPHwNs/ITEbGyd//7uCY2tcdY5toGpKb0IqFPfb0hyQQM9hdxJ9z5vApBrNqtz/G8Ht8uZkzBINS9kjIyX/3E96cZh6ULOUnibtMabm/0QmppPSXm/Ti2KBvfebK5cbwe9ShMhA== 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=jJ+JQk2kXwchwC36KH5oMHfEgeSSZpgqM+aUZlbF/m4=; b=P/p4ItH+oWoGSpqM3MHWCn7+uVIEzInl6kZ0004DPewAc3sKfuU1Rf9Xn0CyBPg1YwoSyOiehwVKDEL1GTAcSreWL3je7H5LB62sHSHxUpTHkKW892Fn6PYyAW9uHsKTY2acLhstX+mX15NCqgWvbSMXD47bPh11QXJ7UHlKCQyJvv/ZbcytR3aU+qefe3i+/O/tM2ETeN7jVZyKV1/IB4gYOH0q17v3+o3Px3T1kTlvWVQnE4o4T3K5J1kmeus4tM8PV9+xY+rK+HGhlBf217ScZXWgT/Kqxwr1AKkkvCkHoMGL1SrO7Da2Iz2MtuKo5Fbxd+bwu9m2Oe+yYQZLMw== Received: from DS7PR05CA0011.namprd05.prod.outlook.com (2603:10b6:5:3b9::16) by DM6PR12MB4893.namprd12.prod.outlook.com (2603:10b6:5:1bd::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.27; Wed, 9 Aug 2023 07:41:19 +0000 Received: from CY4PEPF0000E9D9.namprd05.prod.outlook.com (2603:10b6:5:3b9:cafe::62) by DS7PR05CA0011.outlook.office365.com (2603:10b6:5:3b9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6678.18 via Frontend Transport; Wed, 9 Aug 2023 07:41:19 +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 CY4PEPF0000E9D9.mail.protection.outlook.com (10.167.241.77) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.20 via Frontend Transport; Wed, 9 Aug 2023 07:41:19 +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.5; Wed, 9 Aug 2023 00:41:11 -0700 Received: from nvidia.com (10.126.230.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.37; Wed, 9 Aug 2023 00:41:08 -0700 From: Haifei Luo To: , , , CC: , , , , Subject: [PATCH 0/5] support item NSH matching Date: Wed, 9 Aug 2023 10:40:41 +0300 Message-ID: <20230809074046.121807-1-haifeil@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.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: CY4PEPF0000E9D9:EE_|DM6PR12MB4893:EE_ X-MS-Office365-Filtering-Correlation-Id: 06741b45-fbbc-412f-5f17-08db98ac0550 X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Vn6v4mZXyGvEw2z3RyNG2QJDoBOxdEevEw7kKy+n6QgmNMj83Z9q98hwkM8xhB7RIZ05+YT1OUKi4UpvWJi7yAHykbtXzVo/8/zF5YTQvU53jyfIspnoyh93KLp1nHDe8QTyjVriTefyIzrffTuAWHJX6IDRR//3wFOU3ea5vu5iceKJCzTlfFpkOMGa+DtY0I3PxU+lxMSjuC4Q/bEdacK3aURz5kvO+hqv3ncSzWREbmtXp13M1pNh5u6liB+NUi9x9LvEUVkM+69Sv3PUXvRHcKYTTOld6OLuT6UWeMgI0kJob+chrrP3nyIQZDzBmI+SSiuzc4esj4jkPxERchd9nJOjDIPh9sFx69GY0MWsTwWbImVLLejCMV/atkJG+yCKA6dqOHtRA7QgT0n2sESnmD//r82Fyy80TQby/PxzPTG1CPAQsYreDZesJ9YnmbuccI0bGW/KJdx6ykQVgIeG9rsgQrLrFIDcSTcT4SlFJOktI1huCmQZ3pzyofkBd/hqeg7nxjHpZ62ssta0+00JoaLhukkcwHRnWOYijD8mtAx8Id3Up+eaibFjW3nUilJE6T3gVuvNLG7px8CapnH5rkAkaAMrXRJJunJpZKcr5vPLTRP1MNSUtZzGUVzXxzvZu4V+VSe1cdmWFVT038NQpNX7HUo72gZ5IOzWNLmv586Z5t05Y55Ox4NksI7dDBz2jv0BSgWYbbke7VcD8BKwywO+871HIMDEBxuBi0jndYwgRAduM7A7lmr6NqPk 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:(13230028)(4636009)(376002)(136003)(346002)(39860400002)(396003)(186006)(451199021)(1800799006)(82310400008)(36840700001)(46966006)(40470700004)(110136005)(54906003)(40460700003)(82740400003)(107886003)(356005)(7636003)(41300700001)(6666004)(316002)(36756003)(86362001)(70586007)(70206006)(4326008)(6636002)(55016003)(83380400001)(47076005)(336012)(478600001)(36860700001)(6286002)(16526019)(8676002)(5660300002)(7696005)(2906002)(426003)(2616005)(26005)(40480700001)(1076003)(8936002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2023 07:41:19.2913 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 06741b45-fbbc-412f-5f17-08db98ac0550 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: CY4PEPF0000E9D9.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4893 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. 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.34.1