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 2287B4389F; Fri, 12 Jan 2024 09:03:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4C0EE40A71; Fri, 12 Jan 2024 09:03:13 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2085.outbound.protection.outlook.com [40.107.212.85]) by mails.dpdk.org (Postfix) with ESMTP id B30A34069F for ; Fri, 12 Jan 2024 09:03:11 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j6cUbzcI8+H3S8o5jWs5yReDPH7/PZOzU8i3eFK/Kx1esBsMq1IhVInNrZUmJdaOvRPKWkqmbuQ67JrClQx/JXYW25GRx88w8JOUv1v6WYGD7XWEOxLqwzT7AhXA6rCXvvMc5DAMAYAwypPbY2iSuVfF5t91+qDPJwYskWWdAlmSzxyoKU1gBGOS/ibosAiP5aYeNw4LlxkOvMsVYTGzHnfsd8z98wRoALMUJ1ym64LEr+8X50bgJYSFt1jHuahGWTjgbocN1Cz4jGgGCt/8CQpnYxzw2q8IDIAPXjVLiOD2Om3zY56vHHWzrfTdLtH9HATNqipZckRzDPpDvGPCxQ== 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=wLlE9SgrGtyjwCg+tZ/lCyR24tFPyXA7Ta1rugGsmEg=; b=Uxdkckq0mUKfyot2JY+b4jHUFSEDjBUa1R5657jT5Yd0pnb358GBHtE5YIBs9twRi9PIrSxzz+LU8JovOXlo9RW+63cqesBWGi6id8bqBoQJqVn6fzybZHu7hOiB2NcnXgodBnBvU59oXpnTEsvsuujxzkuMkapmqE3rLvmH626Gwheo+sFoGmVHaAF5hxjZs/+sXRgCl/Thy91TZ1OwXI5HRFkmenJ1b8OEdAdwGxU9hIydlHKKsAOX5tIshZfZ68w/3z0M5aIpOZoyiIzHXh6//vMdL7x9+g6w0T5edN84rl8SzNjIRhmTO/573LZeIQbMEInVEHMUHynek7yauw== 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 (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=wLlE9SgrGtyjwCg+tZ/lCyR24tFPyXA7Ta1rugGsmEg=; b=b4xCplW5Hs9D0PqafC7RHomQM5jPNlGPiOacIzbHVUNTo+qP9oUu9HB2bbYjv3epmhojQ52WJzpaHStGM4reBaV+MTpucIo2iS31UZp7Cc0B+BqunBwad3t4M4BlISAcxMvu/HXyhZPROCSQRx/pSZUTf8+gEU6XYogbJahnGuk6+oZy/6HjQ+53XxDF+IAZwlGyJrdIOIe5fRma9WJXUJRClkpKMmIlTPnWWhv4+w0+PDZnQF4LAJd64ieiLzQYUH7qYFx5kbeS+DgBMnelR/ArBzYwsZIALRI/8H8Uz0drXdd7fsvwxIG57CGyvFAdX7qy7C6WJuIw5YljLrrrTw== Received: from PA7P264CA0150.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:377::9) by SJ2PR12MB8848.namprd12.prod.outlook.com (2603:10b6:a03:537::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.23; Fri, 12 Jan 2024 08:03:09 +0000 Received: from SN1PEPF0002529D.namprd05.prod.outlook.com (2603:10a6:102:377:cafe::56) by PA7P264CA0150.outlook.office365.com (2603:10a6:102:377::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21 via Frontend Transport; Fri, 12 Jan 2024 08:03:08 +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 SN1PEPF0002529D.mail.protection.outlook.com (10.167.242.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.14 via Frontend Transport; Fri, 12 Jan 2024 08:03:08 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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; Fri, 12 Jan 2024 00:02:46 -0800 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; Fri, 12 Jan 2024 00:02:43 -0800 From: Gavin Li To: , , , , , , , , CC: , Subject: [V1 2/5] app/testpmd: support VXLAN-GPE flags Date: Fri, 12 Jan 2024 10:02:07 +0200 Message-ID: <20240112080210.1288356-3-gavinl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240112080210.1288356-1-gavinl@nvidia.com> References: <20240112080210.1288356-1-gavinl@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: SN1PEPF0002529D:EE_|SJ2PR12MB8848:EE_ X-MS-Office365-Filtering-Correlation-Id: 5a9fe64a-66e9-451b-d180-08dc1344e9dd 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: NcS5Fry4y/UdA4yTDeYgqHgGrSnIn1okjTYmT5VqdxpdA82O1UOlqJiBSXf6RjEVptvc9+OdzUw9pFa80D0EjeffNa8Qf8aaqAIFK2m2mRhYFJffMTBNwy3SnHx59jwQIINQE0vH8qbKwLQliN3Z7CWguvOvQobKyS1IWUsKrAPKPgVnfrQZyd6Y2plouZjrP3TLpQkZ2+XPQNnPucFlfkx2bOcIa/TRbD/TXZ3nQiADlI6t4X1r1qztPSOycEHbVYGad/oNAQkuteAkmzwMHvN0YhAuZkGpuGtVzpL7RxMmyWMPaB1HX/bs0O0y8LW2kjQPEgaSn7J3lxsozeVtNfhRXzGa0iUAEZhr38uHdJx4o4RouXi+v1HEdoONTnjp9w61uTaLC2p5JKA+LbKKXYGYInLYqpnIvJqgcK7r68psra9IpkhpItaUuMuVdsINNIe7wmn5v3yVXpwPVhl/cawGg+wR5l70+lXiYhwzddk7As9K5qvNrrLtzmBBVBAm7y7pUXpKd7oRDtOPNZ40Tn+ow14yrV8hO/OFfwh033n6jpDmzdytPSaeuBZKxvreUpGwr5Uao8YOPcMTqkBfSvDNbai8+TSQrMN9X64+M03Sxg3Wr9akou6US74HfrrKWSqQslYCK3Ivft6LrY8WCZ4d9w3+ensvyc0hpkhkhoCGbN6pAkihNYd/GTkKK7SY/vvYHUQJLtSi9kLEzOz2YW2brPWpFdHzVqVRtEYSL7NcEBP/oXbT7ZbZZR8F5+Y1 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)(376002)(39860400002)(346002)(396003)(136003)(230922051799003)(1800799012)(451199024)(186009)(64100799003)(82310400011)(46966006)(36840700001)(40470700004)(55016003)(40480700001)(40460700003)(6286002)(36756003)(107886003)(70206006)(41300700001)(356005)(70586007)(86362001)(7636003)(36860700001)(82740400003)(47076005)(26005)(336012)(316002)(426003)(16526019)(1076003)(2616005)(6666004)(478600001)(2906002)(6636002)(7696005)(54906003)(8676002)(8936002)(4326008)(110136005)(5660300002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2024 08:03:08.0693 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5a9fe64a-66e9-451b-d180-08dc1344e9dd 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: SN1PEPF0002529D.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB8848 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 Add support for VXLAN-GPE flags field in flow rule pattern to testpmd. Signed-off-by: Gavin Li Acked-by: Dariusz Sosnowski --- app/test-pmd/cmdline_flow.c | 10 ++++++++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 1 + 2 files changed, 11 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index ce71818705..deb2d80301 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -401,6 +401,7 @@ enum index { ITEM_VXLAN_GPE, ITEM_VXLAN_GPE_VNI, ITEM_VXLAN_GPE_PROTO, + ITEM_VXLAN_GPE_FLAGS, ITEM_ARP_ETH_IPV4, ITEM_ARP_ETH_IPV4_SHA, ITEM_ARP_ETH_IPV4_SPA, @@ -1789,6 +1790,7 @@ static const enum index item_geneve[] = { static const enum index item_vxlan_gpe[] = { ITEM_VXLAN_GPE_VNI, ITEM_VXLAN_GPE_PROTO, + ITEM_VXLAN_GPE_FLAGS, ITEM_NEXT, ZERO, }; @@ -4936,6 +4938,14 @@ static const struct token token_list[] = { .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_vxlan_gpe, protocol)), }, + [ITEM_VXLAN_GPE_FLAGS] = { + .name = "flags", + .help = "VXLAN-GPE flags", + .next = NEXT(item_vxlan_gpe, NEXT_ENTRY(COMMON_UNSIGNED), + item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_vxlan_gpe, + flags)), + }, [ITEM_ARP_ETH_IPV4] = { .name = "arp_eth_ipv4", .help = "match ARP header for Ethernet/IPv4", diff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst index 447e28e694..9c6b04442f 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -3703,6 +3703,7 @@ This section lists supported pattern items and their attributes, if any. - ``vxlan-gpe``: match VXLAN-GPE header. - ``vni {unsigned}``: VXLAN-GPE identifier. + - ``flags {unsigned}``: VXLAN-GPE flags. - ``arp_eth_ipv4``: match ARP header for Ethernet/IPv4. -- 2.39.1