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 98101426E8; Sun, 8 Oct 2023 05:11:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63D5F40263; Sun, 8 Oct 2023 05:11:24 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2055.outbound.protection.outlook.com [40.107.244.55]) by mails.dpdk.org (Postfix) with ESMTP id 856B64021F for ; Sun, 8 Oct 2023 05:11:22 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J1Y0Xv1VdnBbJdhh2PuCM5mbaGiRB7EfB/bn0uKVQfxgci/VBb6BcoS8kZ0j3SQ2RAkAYVThBjZ4Rku4dJ23YzCqlEiOOv3haV2xVdgMKv38Zbp0LtfijNq/TVE4NwUoZVp1031/q2Pv0ip37ZgKkievwva16FTbkoUGd18mkcVfAMLbxKa8TmQSmgjoReVEMDCryg7xal9A1GhVBYAqD976tE9MCmwXuv+r+D+yaXLIVlZjcVpm0u0VMGAkEAeKQVvwNACyO0rytypNii2tKab3/aIHyUU4xrsSsr5WdpI7ScUu6I/b+TjE6boxstrfNwKyusyxokP9q5RsRr1bmw== 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=iyCJLf43G3brkKnu7uYjUf1lh33dVX5SSDKD6jsmRxU=; b=HVzkKslcHsjE6wiIQbmb/Pq//bOfDzkhLYmbj7wGzPWKkTLGcVjXkhQcMa5HSoaiJ9FqNnAM9cmY9E5+FWvTZTbZQ9fTo73OhgRaogxn+lx0Nt36qqqjlj9HosIQC4MRb0e7m5RQlZofQfp07UPS4ikkbn9NKPK5TPjyuxpVo0EKF7LL+yPO92t5jJ7MeCGyEsu5g+avfgLlDe693x6yTE02fIzx9FpoEmG64B4tU0NS/rDm3I8zV7bPe2xf2KLcVbAAJSEEEB+6USDGzSgLCW3nTdN/DQgbvhnvQN07t/mJqciSvKeAze3ZnAsxxtSGnLhrn4P/++8VQ4HlujnRRg== 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=iyCJLf43G3brkKnu7uYjUf1lh33dVX5SSDKD6jsmRxU=; b=nYQetE1UcWsnYiNMH5rr/i77f4pHMOvlMC3BKeHyUVQ4HdxnFlfA5h74A+uD2LS0vYAPD48kR12HA4ow6gJi0Tv+nlhdYmXk8QKF+rqxeTY0HJXBedsgYS8neBjSuBJ3Xx4wtQXa9pPvaU9wyWQC+mrKtZStQ3fPBbVyoeQgyUowd5hR/Qz5/z3Pf1VefGXKxMFIy2H3LO6zA2CPGadeW2A9LZshzQmTjjV+wax1T25Hh64lRSRFO78Vy1lK5r0+vkvJe8ibk4Y2yvKWNWP7GP0B9+u9gEn/z8KZhtyzRfrza8i6A1glifnLNVm/10yk7ZqhdMs31e1Eq1Nq0AK8zQ== Received: from MW4PR03CA0074.namprd03.prod.outlook.com (2603:10b6:303:b6::19) by DS7PR12MB5983.namprd12.prod.outlook.com (2603:10b6:8:7e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.41; Sun, 8 Oct 2023 03:11:20 +0000 Received: from CO1PEPF000044F3.namprd05.prod.outlook.com (2603:10b6:303:b6:cafe::5c) by MW4PR03CA0074.outlook.office365.com (2603:10b6:303:b6::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.36 via Frontend Transport; Sun, 8 Oct 2023 03:11:20 +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 CO1PEPF000044F3.mail.protection.outlook.com (10.167.241.73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.21 via Frontend Transport; Sun, 8 Oct 2023 03:11: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.41; Sat, 7 Oct 2023 20:11:07 -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.41; Sat, 7 Oct 2023 20:11:05 -0700 From: Haifei Luo To: CC: , , , , Subject: [PATCH v4 0/5] support item NSH matching Date: Sun, 8 Oct 2023 06:10:24 +0300 Message-ID: <20231008031029.30850-1-haifeil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230925080746.16438-1-haifeil@nvidia.com> References: <20230925080746.16438-1-haifeil@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.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: CO1PEPF000044F3:EE_|DS7PR12MB5983:EE_ X-MS-Office365-Filtering-Correlation-Id: bb864e76-debe-458d-424b-08dbc7ac3e93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fdpQtFM91UDtYmpt1oFtNjf53+la+30A9Q55ymSe3iEXvyVcm/H7mCMBMa9o9cjFKN+WpuPA5Sm2qWPzKqrBuh6ubjjrTwuLGafus886ppTfsDwS5Ph+PuhG4q62FtKlteZ1ZTL3FPLs5h2wdJnwN6XOKh65o/hi5zwe2gxAjgsoIc7DbPsRWA0RdR7EYI3Ey5Vz6ODiiYDb183vXFw6EKjg2Is1vNcQuIQA8Ld3Skn/NDM1dXuBcyAYkG3BICa41Kby8+sLmTYvbJj48yxfc0/p7p6iJSQO2dX9zSYnSRKJyJgljHs31x7qeZbmPxVX50o+4D4ptW9EnSioAQ7PO7T4idjs2TzG0h1jXWOL0oWIMrrihhazUQFbpvTjvwRoNyHD5k/wQHWuAGF0JGCRhKlv2PqT5uCQRsZYT6CceFRCLsOhP0Kw2FNdTu9g82l57ai67RWJcMe7KNOyBe2AZ/1zWoYblg2Oqs/CfKFcOOEUlVOCjYc7CTEVdOjLK+/NNG9FjswQL6PY4Wr4/RGk9VG2qHuCLGhZF0+w8xSYE/4WL6eBoEP5NxX9zkar1Oaz5OITzPmHDe7/DtTr/23Fa/HkaBIK/TAf/bSXsESHWuwayuv1Icjo/U5VNKqQMVdiR6I5b8eIYnIDtCo8pxR0Sf/B4ICR0oHiYiMCNtbCbDieSqU+hoyi3O2lup9Od/iVDh5fTcJFLWa0Lz1ZzYtSzfzbI7lM41aindRtZgG3SYk= 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)(396003)(136003)(39860400002)(376002)(230922051799003)(64100799003)(451199024)(186009)(1800799009)(82310400011)(46966006)(36840700001)(40470700004)(336012)(40460700003)(55016003)(40480700001)(7696005)(478600001)(6666004)(47076005)(82740400003)(86362001)(7636003)(83380400001)(2616005)(356005)(316002)(36860700001)(41300700001)(2906002)(107886003)(26005)(426003)(1076003)(6286002)(16526019)(36756003)(54906003)(5660300002)(6916009)(70206006)(70586007)(8936002)(4326008)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2023 03:11:19.9635 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb864e76-debe-458d-424b-08dbc7ac3e93 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: CO1PEPF000044F3.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5983 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. V4: Add nsh in feature ini file. 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 ++++++++++++++ doc/guides/nics/features/mlx5.ini | 1 + 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 ++++++- 8 files changed, 97 insertions(+), 9 deletions(-) -- 2.27.0