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 59FB143016; Wed, 9 Aug 2023 09:41:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4AB4E43262; Wed, 9 Aug 2023 09:41:35 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2056.outbound.protection.outlook.com [40.107.223.56]) by mails.dpdk.org (Postfix) with ESMTP id 4158143262 for ; Wed, 9 Aug 2023 09:41:33 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n7IYa5Vl8IR5tsm1QNKWf1hEEVa9Qz0fZtkBmiKy3DGv+K5cZDQJdKXgPCJcw/6cBkjpBbECDRvLADtskZEWhDGwa6j0O+JQ+uCO08+x1Z16KPIiDXH/6yewmXS7h6VTmdcBGFADJ3fl4zSW8wZDng3M7mY2eC638HePw78baC5ULailyZeYMLfkoIRDIwh5frtbdLjCCSeHNqxA90d04jOja3PhUoJs664VV6RnKhWIuBefzH97ulBSEQEdneOLdIfeSYtTbCKg3ZbbDcqZCWF+f32d6e45nni1EFjogXcAgpmBn/zaFUDtkBR2hwoDyGO3m6cYYjgw0XcIH1Z/UQ== 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=mN71+IEPokjhbRASXK2bzzkoD5F5olkwrDHT8ExYxaM=; b=M5lciSi+iJDm1tdNyEVc2OVgWgtsDys3s1/pHKnZpjBibFIuTaKQubMBVM0Z5O9ZkVUiKkJJ4qYDNNq2SuobZj5Z94znbIqyDLyaEiGD4IgtOhIfN0T4+UWgaCF2uu8anXBq7pGd8MJ80WxNjNTxe9lvkWIzlJ8XKOQ53sT9gw412D7DJD6Xqr8AhgE/vbLttXK9zVD0mAqY4n2V6z08bysevHKi2wzZt+kOe5cs+KFwKr7s6rEYvykBnBTV7ff2qJYRpB90BweW6+ahLoWHFndG1JjeJdAdEMwyuFh7RHveHHYcdb1zGfm5bOnDAnJAEvnlLS26+owZkdYuNdCYZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=intel.com 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=mN71+IEPokjhbRASXK2bzzkoD5F5olkwrDHT8ExYxaM=; b=LAj+sr04xV4HSCYVC+5xhZRJ26ekzfh3FS8HNv/r2kN1ERfvLOeWGGTSE6uAPWuCU7Peb3lfnkOobSsJCsMmMoAh1GNJwpUF8ItrqEoxigVQlDGcPPLOKm8BDwaqEMNIwWuYpekOzYwb9MqtKDNzYnaTdvWmQYGvAwwt1EihSm4cIo8t6OCF1dPN59jZ5fFprEHVwrTIQlnPg4HKkN7zjEeNJrUKihvTxbw5xYQ0fUZOXZ41MVjBh3m+jSPGyEgNaDOOCsaU7OXyLIhQ0PMn4nzMRmsW4kUz09UmAQTgYtpuD4zewrPziMAFbnw8FPzNBiodAP6tnElM1lJs3n4X3A== Received: from SJ0PR13CA0057.namprd13.prod.outlook.com (2603:10b6:a03:2c2::32) by PH7PR12MB5782.namprd12.prod.outlook.com (2603:10b6:510:1d1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.28; Wed, 9 Aug 2023 07:41:31 +0000 Received: from MWH0EPF000989EB.namprd02.prod.outlook.com (2603:10b6:a03:2c2:cafe::1c) by SJ0PR13CA0057.outlook.office365.com (2603:10b6:a03:2c2::32) 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:31 +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 MWH0EPF000989EB.mail.protection.outlook.com (10.167.241.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.19 via Frontend Transport; Wed, 9 Aug 2023 07:41:30 +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.5; Wed, 9 Aug 2023 00:41:17 -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:13 -0700 From: Haifei Luo To: , , , , Aman Singh , Yuying Zhang CC: , , , , , Jiawei Wang Subject: [PATCH 1/5] app/testpmd: support for VXLAN-GPE's next protocol Date: Wed, 9 Aug 2023 10:40:42 +0300 Message-ID: <20230809074046.121807-2-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.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: MWH0EPF000989EB:EE_|PH7PR12MB5782:EE_ X-MS-Office365-Filtering-Correlation-Id: 126e2fc2-ff7d-49b7-abe4-08db98ac0c25 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: +iq96PDtfnZK4nbhHcDoYNqGNRZoz0FmEqbJpHi0AcPas//MWleln/aoj7Tz29g2T7pWXkgkZY4Dwf8kFF1m7h+COloTxLacy1DyfgAUwr3OxZ+LBJQmlvxZ6vn0Zo8ulXuhLxYLfiMLsoCsZN3FqtBTjC/lqJyklDdXy9BGu2KGrS9D8d5IXx2VS9QPz2a/VSVa8j+MLf2BJtSh5MZ0hvc7iPBZYaNzXsUq5ysbNMIK3v+AeYJHg+wBVFP4qagDMqtpds4o+VzAH7nm2yWaMNss2CVJill1Iijx2rPwRxfRCjffChWR51F7nSc5BC5biI1rmee9XVjqrrxO/3Iwckk7pEwSNiz7/AcGjsDwPjPk+umpfZUpuGfR1o1qIdqZFkIXxl1tPs9k7vbDxabbQCbF9TDw9eoCBeQTLglvsN2X90kAJOzKS69Vo4WUXz20GnpcnT519Va4DmBj4m7Yula1U9EiUkUGvBuVqhZkQ2LqpNSC8JIngrhe7lvFfiOP8I/L77B1rUMw7JVSa16Su5fBl7dbVNjIojNmS+dEj4qjmTLEsOgJdaDejKlQlCcUQDR2sRYP1/Rkla14FnKoNh0NtxxKIZH+yserhFLJ5HVIez95Toozv/zgp8PwzKb4W7HVcSQUdHHHIwJGIwVeg8MYt2ei+GDneSrn7tROJITbVkU2Fm2MlyPAd8tCAuBrZNCO9J2L0dMkrE8NJb+Cp8ZHDS7NKsiWmi/psrk+XGOM6YG99bfWg7VFYKmxBVfb 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:(13230028)(4636009)(346002)(396003)(39860400002)(136003)(376002)(451199021)(82310400008)(1800799006)(186006)(40470700004)(46966006)(36840700001)(1076003)(40480700001)(55016003)(26005)(107886003)(40460700003)(110136005)(54906003)(36756003)(5660300002)(86362001)(2906002)(4326008)(70206006)(70586007)(8676002)(8936002)(316002)(41300700001)(6666004)(7696005)(478600001)(356005)(82740400003)(7636003)(426003)(36860700001)(47076005)(336012)(6286002)(16526019)(2616005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2023 07:41:30.7868 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 126e2fc2-ff7d-49b7-abe4-08db98ac0c25 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: MWH0EPF000989EB.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5782 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 configuring VXLAN-GPE's next protocol. The CLI is: vxlan-gpe protocol is . Example: flow create 0 transfer group 1 pattern eth / ipv6 / udp dst is 4790 / vxlan-gpe protocol is 0x04 / eth / ipv4 / tcp / end actions port_id id 1 / end Signed-off-by: Jiawei Wang Signed-off-by: Haifei Luo --- app/test-pmd/cmdline_flow.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 94827bcc4a..d25f941259 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -385,6 +385,7 @@ enum index { ITEM_GENEVE_OPTLEN, ITEM_VXLAN_GPE, ITEM_VXLAN_GPE_VNI, + ITEM_VXLAN_GPE_PROTO, ITEM_ARP_ETH_IPV4, ITEM_ARP_ETH_IPV4_SHA, ITEM_ARP_ETH_IPV4_SPA, @@ -1758,6 +1759,7 @@ static const enum index item_geneve[] = { static const enum index item_vxlan_gpe[] = { ITEM_VXLAN_GPE_VNI, + ITEM_VXLAN_GPE_PROTO, ITEM_NEXT, ZERO, }; @@ -4804,6 +4806,14 @@ static const struct token token_list[] = { .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_vxlan_gpe, hdr.vni)), }, + [ITEM_VXLAN_GPE_PROTO] = { + .name = "protocol", + .help = "VXLAN-GPE next protocol", + .next = NEXT(item_vxlan_gpe, NEXT_ENTRY(COMMON_UNSIGNED), + item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_vxlan_gpe, + protocol)), + }, [ITEM_ARP_ETH_IPV4] = { .name = "arp_eth_ipv4", .help = "match ARP header for Ethernet/IPv4", -- 2.34.1