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 A6B6042635; Mon, 25 Sep 2023 10:08:31 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2314B4068E; Mon, 25 Sep 2023 10:08:30 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2087.outbound.protection.outlook.com [40.107.94.87]) by mails.dpdk.org (Postfix) with ESMTP id 73C294067B for ; Mon, 25 Sep 2023 10:08:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lLA+hFA2mZIC487pSDQqyntXVR9QNnEyI57tRwt9QGdRaT35gwD+txCkeRKLaux2AUzwgSDRr9hKS6MVkjIIBiOCFy9UBjJ9nP04aXOgJqkoMo9cP/cYub65CcLK4bqqkPcY10SiqX0MFBJgJ/Hy8GAHrhObX8zijqRHTuJ7vR9MIdW5erjhPONv+t27eA4OKU76gmPosMKl+Y8jca64Kile3ZrjifnvmVJ87XMROWIjBYB0mChF7rFr7Net+3MQsQrfdf/lf9Hzl3EHgrbwGHGgChsMV071kyOiF/WvUSgQEg+Vy/qRttFXmM98XEAdKQQR/0oaRCb/O1FYB5wZUA== 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=um1l8dSBbOzIr7xkn/DAvrpJAzKGwBTg66DxwzdvAsQ=; b=PE55ZEPS4j18c1hLkRdQ7aMcJGC4kOp9Q+zFgBY0xS2i5LE2219k17s7nqQ32VMpzmLBjiX9ZQXwWitbezuLn4vEuXyVB2ZR360YLZAonUl2ZkXdSJ1iX4jExMbenHfwdtYzD1uhTxpcm33qKs+3wjF0zdcVzNJY2wC3QIDvYI83DdLPp9DA0aldci/XPyEt5YZG8OAzw+4FY8fXpbC73FMX3+KJPDdHy16pS8cm9TuuemNCEtj+OD/4eV8kV2am/F4147odZuUeqdU08HKIrGSpRhdijvvoiy0fDnBYqeyVut7Z3RjtVMV1oDpccm3zdobYQWZDHeuUEUk4UnEA2w== 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=um1l8dSBbOzIr7xkn/DAvrpJAzKGwBTg66DxwzdvAsQ=; b=hgh08k9zYs3SGXBG50Gn3Sis8e9cwNVKrsWT12SqOg+qUkStHI5ViewCVoP1ZZEfinMn7sakiC8Vir9NH5q85NdUMDYedeNMpaMuPh5AtfRGmNKXEvGmMemXPbgK9JTGJKHWFph8adjKEmojwuQLS0YynooOvwzqZlI8ZijnuToqTe/tr9MDWDmhtBHOqY5F7LrQ4a1JeqduCBuMhSen7hb89RbL6iAWg4l30N8l4awW7GqWs0JtT9qF2fRJTd7gHSlV8BYrccTNMGYoNt7Jx+N40xXLkNke5ob/evZa5pO2qqwzUJMWHWb0d7X/U2CORjA5KISoQhgdyq3EcZfPnQ== Received: from BL1PR13CA0065.namprd13.prod.outlook.com (2603:10b6:208:2b8::10) by IA1PR12MB7760.namprd12.prod.outlook.com (2603:10b6:208:418::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.28; Mon, 25 Sep 2023 08:08:25 +0000 Received: from MN1PEPF0000F0E0.namprd04.prod.outlook.com (2603:10b6:208:2b8:cafe::64) by BL1PR13CA0065.outlook.office365.com (2603:10b6:208:2b8::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.18 via Frontend Transport; Mon, 25 Sep 2023 08:08:25 +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 MN1PEPF0000F0E0.mail.protection.outlook.com (10.167.242.38) 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 08:08:24 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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; Mon, 25 Sep 2023 01:08:11 -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; Mon, 25 Sep 2023 01:08:07 -0700 From: Haifei Luo To: CC: , , , , , Jiawei Wang , Dariusz Sosnowski , Suanming Mou , Aman Singh , Yuying Zhang Subject: [PATCH v3 1/5] app/testpmd: support for VXLAN-GPE's next protocol Date: Mon, 25 Sep 2023 11:07:42 +0300 Message-ID: <20230925080746.16438-2-haifeil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230925080746.16438-1-haifeil@nvidia.com> References: <20230925020921.4607-1-haifeil@nvidia.com> <20230925080746.16438-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: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail202.nvidia.com (10.129.68.7) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000F0E0:EE_|IA1PR12MB7760:EE_ X-MS-Office365-Filtering-Correlation-Id: be5f054d-c329-44a8-a22f-08dbbd9e97ae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rNZFCTNAEawOdyF/+wZgEnu1ZuE0muLhqEsyF1ghmKfSxYIm9FNodd41ioyDjlM4djzR7mEdK0TAhcpzFaw95QS9GHg4cT7KTB4Yu/h7wPxE4Ipgn/eure+jhXE1fVony+mqwJQrQkb4lMGxvdKGmOzcsAMFfCsKDndrbcCix6qCRCPl/+OC2b2dXvhbyHCZWZZKg7cZmXWfc8FT3azarbQVl9GWGoykfIgzLbc28Y3vMQi7kbFLYmkku7PK2nbtI8mP6pOLLNyp3pN7tks4xulQarKMd/jv8zO1R5QoY4eL29DeCde+jEqlsxJl7aiARGVL2x057ApPYS961EyGULULLfZ1Srfuq7Kxp/IUxDSzLcDAMhzTM/qGRInpapgyAQQCF5imVNzgMMOuydcEWWFxPs5HqQISF4/CY1+XISBknb3cYM4nMyXNlkMblin67kAAFeT2fZr76QO/XN2yIlyXYVx16Gvy1ZAt0tQT1c6rJq7XbQgATd5wQiXxzPVfRRc5rF3u77mkS6d7isLPPXFil/nZSUptw0sTh6KXxx9QgGYq14T7KtegsK2jcygunKz6aBxzIp7hrXBDjREp8ZWziopESgliUNC23RJlP5VVmC+MomKTrk+IMzPKg/FIS2Yyx9QyVWGWC1ESUg2Si/5npVjWXNIvMbS3b8QQ7KdKrus5hMdU9IqfPGPzuvadWb4wcCaypO4LMo6dEHI/Pkj8+oz/TWXBo+w7kDmEgg7kLsulG7GbkCGF2yd08bcb 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)(396003)(346002)(376002)(136003)(39860400002)(230922051799003)(82310400011)(186009)(451199024)(1800799009)(46966006)(40470700004)(36840700001)(336012)(426003)(2906002)(40480700001)(2616005)(40460700003)(1076003)(86362001)(5660300002)(6286002)(26005)(55016003)(7636003)(36860700001)(356005)(16526019)(82740400003)(4326008)(47076005)(70206006)(70586007)(36756003)(6666004)(41300700001)(54906003)(7696005)(6916009)(316002)(8936002)(478600001)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2023 08:08:24.8312 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: be5f054d-c329-44a8-a22f-08dbbd9e97ae 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: MN1PEPF0000F0E0.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB7760 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 Acked-by: Dariusz Sosnowski Acked-by: Suanming Mou --- 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.27.0