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 BCCC342630; Mon, 25 Sep 2023 04:09:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 73C1A40266; Mon, 25 Sep 2023 04:09:58 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2043.outbound.protection.outlook.com [40.107.92.43]) by mails.dpdk.org (Postfix) with ESMTP id 6FAED40144 for ; Mon, 25 Sep 2023 04:09:56 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j9ej4atjZABv1uX/tHDb8wBTkhPwSylBpTRhJA2BnK07boWcG42NrsqOfgnnfKKy5fyvKFOtAdn53hs3vpH4VQmuOLFKzGsW01I04C3d6y1kYkDUcnog25lfcSKf2KcLV83NzXHAc6Y2ObmwbfniPXpkhkEnsgfepyaNLJTv2aaFnOXrQgNW3lBYd+YxMkLoKh+pme1nacVvlvqD9Q9bbcMRVgwJcpG9ArIFwEWpNHAQIi0FWv/nqTDwMytvNTlJS1fqXrymNSMLW205pv4LaiQB5Duf1UV09SJjBVI75dt4P6i6vFbnQNBiSdFNAoGWGuWsYm+F2QQ9NWruumIiDw== 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=/rWHDT6XsF4H0BlxXqCpVzP9IGQbp0hLB29pxADRnq4=; b=BLBMOClCqKMmBGs/+0FMy3wDSk7MHWa9SFqPoEQ83MBaJTIo2vtE4BLBWMXAmWyPM+6c8dGP0UD3qwwElQj7pgO0ayIgAG5MLM7lpNAnXZWmPUXu+rHLQJ6hTxY5e9M2P51H3VkWPPp8WVSVHcsQfugDZoLyyiHTKNKC/8HouaDyPgaacyQCg5l3JxjN5DIPej3bmZCQVUeRt8erXeGphDxIzwSZcifUNsxtKOf6gAVkSRGV3UFsFIjYlqtItklkB730w+Wj0IA1wFALCJQUlfmRreCX5rN29dyHQRCr0WVTSUhaB5Dxi/960KL+GGQFsTbGTH9HijF5R+YEHkv9xA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=/rWHDT6XsF4H0BlxXqCpVzP9IGQbp0hLB29pxADRnq4=; b=LdEgygEmY7M/+mQqhpPZcdwJjTwlyD6okhk75jEZ6HzxdkVolhzJZs1SoS1KkvmWl9V8sFs6r8rSUs5FEgDwInfeZ0ksJcWtDtK/+eq4vfaxUp5a0sjWNqinIVWzmeKOTdV8tk/Tw0WMTBdOJvc2R/qQI+kn7FFzf1ghKbrauBx8eXy0C0NueXFch04NDPjPWzSKCwYZH+vxRZb/bOgVOsVH75m5jtzminHeqr7+a1Ogt5ceP7qwYqh468JuokHCFndPlp61c78joP7tb8Sz137ftKZQspsInBO8FvMyP4m7ZxZQwV3z1O21p1Sy+WHr+d8Pe5LNr8Hz2nZnKnlW1w== Received: from BYAPR07CA0041.namprd07.prod.outlook.com (2603:10b6:a03:60::18) by LV2PR12MB6014.namprd12.prod.outlook.com (2603:10b6:408:170::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.20; Mon, 25 Sep 2023 02:09:54 +0000 Received: from MWH0EPF000971E3.namprd02.prod.outlook.com (2603:10b6:a03:60:cafe::57) by BYAPR07CA0041.outlook.office365.com (2603:10b6:a03:60::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.35 via Frontend Transport; Mon, 25 Sep 2023 02:09:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by MWH0EPF000971E3.mail.protection.outlook.com (10.167.243.70) 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 02:09:53 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Sun, 24 Sep 2023 19:09:38 -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; Sun, 24 Sep 2023 19:09:36 -0700 From: Haifei Luo To: CC: , , , , Subject: [PATCH v2 0/5] support item NSH matching Date: Mon, 25 Sep 2023 05:09:15 +0300 Message-ID: <20230925020921.4607-1-haifeil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230809074046.121807-1-haifeil@nvidia.com> References: <20230809074046.121807-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: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail202.nvidia.com (10.129.68.7) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000971E3:EE_|LV2PR12MB6014:EE_ X-MS-Office365-Filtering-Correlation-Id: 8629e2c2-09e3-4999-f511-08dbbd6c820b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OTNGEIIMUC382uninzkLo0fil5RKt8aK03TQ2GbjtAMBdkePAMEnvKVa1CJkEZ0b/y1xyz6Lz1UFpzoFWyp0b4bMLy1ktTyYN6Jlt+NqDfKzStiSioor2Tg5E0YTmZN0HhdrrcUXXxUoK473TxivXIO0rFFj+ArVUgwfcyOgGQhhbuL/vEnr/GYIs469zMSXIsfBWZfHZD78VSOZ/cJGsBauscNC8iFW8BcGUSK33hrNy9/5CtImU3rWHkccGyK4l3dBfIaDJb1K797fJrkda8vXmvvH/Psms5Qo6sDG6Ott49/Wuc2KcRxSWecU4iKzOnzLxc8cYwqgojadegQTNH3gVs8gj+TnLn8N+Ele1tUr/Lcdm7U4RtqOkfiUDczOcWUSTeffzbo/l5dXwkSsTS3N4Ky8Rj9kCaFUP55bE46h1bpRb/al9mUgpS+mmsm2uQsLkLoojkd/ZE6vpEfQiKaqM19U4N6z0Fai0QWPteVJneGOQREgZW8+nLUGhBlbGNgj6hRtlGDG8eeg7c3v04+fE914Gjj86O6W/uwVGpGcAABMXuqyvwlUND6zezOVa7Y9sglT1d+QRdf0P285Gvt6Mx6b0IdyIDLXlep0vo8MxpAcrMtBLQlfNZmo7qiv6iWASY8IaWBK3mbxcNQEGMmX/1NBHd0q/3dF9IJ+SHu0DBCOBjn5jOlhMC5Jhlil/bd7wBtWcMSnR9q9TC54jg== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(4636009)(39860400002)(346002)(396003)(376002)(136003)(230922051799003)(186009)(1800799009)(451199024)(82310400011)(36840700001)(46966006)(6666004)(7696005)(2616005)(7636003)(86362001)(36860700001)(107886003)(82740400003)(36756003)(40480700001)(356005)(336012)(83380400001)(2906002)(478600001)(426003)(70586007)(5660300002)(1076003)(47076005)(26005)(55016003)(6916009)(70206006)(41300700001)(4326008)(6286002)(316002)(16526019)(8936002)(8676002)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2023 02:09:53.7434 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8629e2c2-09e3-4999-f511-08dbbd6c820b 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000971E3.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB6014 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. 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