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 01C2642630; Mon, 25 Sep 2023 04:10:04 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7EC8E402BF; Mon, 25 Sep 2023 04:10:02 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2077.outbound.protection.outlook.com [40.107.92.77]) by mails.dpdk.org (Postfix) with ESMTP id A9114402BC for ; Mon, 25 Sep 2023 04:10:00 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FH5AKqEWYLQx9TJne5lt9wxjZHim2L+uWDiwYeGgCmkujmH9TarNacAo1tYMZqyZotrq967+ylXjrQk3Z11dQ6NW4Nhlo6ABGnlrxUiu79saDFHdMFeJLoYqr+0nUor0JJZV3XewB5d5ZXKc5/CPfuE0e1G90D0yxJbis9hbOvmpykuPELcnGWpbvWouJxQtMgUL9rG8zSaM+QjTlnRqI+WVL7uFojOMpqEaqIhMvFkY+yZl6x9g4royrR22gdBHcltU9ShRjWqeXY76SaiRrcOVdzEtV6IAmTpcIu0+f0diDOKtGevUSNaw7YYYSMY6YHFuNoiKS+QaJqnqcafK7Q== 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=5GsrDkJwBmBLzFuOBbG5CLp7u0HVgOyLAV+E/KkaYNw=; b=B1Ax6fYewaBHpPHb7naQjxRhgergXWbQFMGISHKmTL/JsBNuCV+WIJuCWwgMZ++QWqLpPxRc7X9choHSNhX7CfQ4tQcYTMiLblaNLVOBG+JxqqjdbAdSJNvclheNBg3MrKmSGXlxfyJyyN1Ujub0bTYj/vcIr9c4OHVixpbSl3EammMTnfn70UKW+dxMu/e5K0WsPQ+2IKRw/TaLbUu+M1M+vmSX0NZx4Y7o7ymLvSc3/rHRlljsGX7K4jQvY/B2Ce5GMxJt8OfgWGYLKA1Ug2QcL92V35gCs0WJBacEbzBSRzXhUYmPJdtZHTr/k5DeZRyK+1klivAHGn9KxMc3Fw== 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=5GsrDkJwBmBLzFuOBbG5CLp7u0HVgOyLAV+E/KkaYNw=; b=bgRoBicNY4ZmMbFIrqTUPkU15hBbGncoyd+o9y9j0uPEk39MptwuAXGTQzwJmOOy2G6r3wFUdtx/G+ODTWHuVFpTHm3iVQ/YgT1U1Mo1ohs4wzBwMa5PnNqozifhciVchXxf/4YBCweWsW5r3QkuyZ3lete7PDbzvynWOtnJSyLho2z0Jx4lApKFX8jdvIpVg/zG65CP0NG/i2e9JE+g8NLHZ23dbN21XcB2ypiy04+d7iRsfEjbDYWaSENmqZy6D/xFMxZAe+tIup1vqYSp0qGsvSdIkC96PyYFFVXsY6OL5aocW8Djaixe2DNEp31vb6SLqWmwlgU/zYzREeRGpw== Received: from MN2PR11CA0006.namprd11.prod.outlook.com (2603:10b6:208:23b::11) by MW6PR12MB8950.namprd12.prod.outlook.com (2603:10b6:303:24a::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.27; Mon, 25 Sep 2023 02:09:58 +0000 Received: from MN1PEPF0000F0E5.namprd04.prod.outlook.com (2603:10b6:208:23b:cafe::ca) by MN2PR11CA0006.outlook.office365.com (2603:10b6:208:23b::11) 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:58 +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 MN1PEPF0000F0E5.mail.protection.outlook.com (10.167.242.43) 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:57 +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; Sun, 24 Sep 2023 19:09:41 -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:38 -0700 From: Haifei Luo To: CC: , , , , , Jiawei Wang , Dariusz Sosnowski , Aman Singh , Yuying Zhang Subject: [PATCH v2 1/5] app/testpmd: support for VXLAN-GPE's next protocol Date: Mon, 25 Sep 2023 05:09:16 +0300 Message-ID: <20230925020921.4607-2-haifeil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230925020921.4607-1-haifeil@nvidia.com> References: <20230809074046.121807-1-haifeil@nvidia.com> <20230925020921.4607-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: MN1PEPF0000F0E5:EE_|MW6PR12MB8950:EE_ X-MS-Office365-Filtering-Correlation-Id: e0588b02-fff4-4c67-1e95-08dbbd6c848a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4SbzX5BRt4+yG5Hk3En0J6bUaXzuofp8JiEL1YBHXtwvSQJyRuemvAdsBj4+2r+GwZep6rS+HRSYk1KAZT0i0LI+yRMix0lOIyZ3iSCJ8PFjSDmXcJCP30gTvuN8xwUKYz+fwVeDNSv31st095Y1hRT+mLhg9wT38lpLAHU2DQ5gNU8PzWfu51XjudxV6w7MxbWRjO3iqndtVAcmig72rPpEHsa+ShGcGjTGl/WaCylMxFVsaixalSxDfLLj2tu4EH/olGiRDZhAfLJm1TG9aKfVMt/CeSImXh/1kjVdjLTsjhKz8R6xsV25daWw0pqrqnmE2tjE18hylyay3qohd5xV4oqM0r/DIW/qOr8Z4cf77JimlWEJCEcJ2NxaltbyfeIZDexezWARdWVXOy3C0kRY3yCpC8kv00s6QUsDsoPkzqHCJhNIdOyrBS6gkEYDq8dsHBREJnDdiu5alsIwjrFS8CJWZ4hoMCxc20iUQDLleiAgXW6ZryguSzcxymI+oA9Yq7tUw3kzWsd6xDEeixy6tTEE9CVAN6M1xHEBFx2zGtzlKQ+VxvC8yAl9ZAhcR4m53ebEmsNZ4saZYdpvk/xoiYz90wMunTYeuLzGIJsSAAM+CGVlaxF3TWoMAEU9/6ZBJlY96AXd0qpYI6UOLE9Q1KNP2acuXFsZL8KaltflJ1FF8vUL7taEZXiRGgk7rs4H/jQuY4B4BJ4VvXspHDp7KSvsMhlMkQS8NmQkUMNqHOD0/J8xmtxYH83YNfP1 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)(136003)(396003)(346002)(376002)(39860400002)(230922051799003)(1800799009)(451199024)(186009)(82310400011)(46966006)(36840700001)(40470700004)(26005)(6666004)(40460700003)(478600001)(2616005)(6286002)(1076003)(16526019)(426003)(336012)(36756003)(86362001)(82740400003)(356005)(7636003)(47076005)(36860700001)(5660300002)(55016003)(7696005)(40480700001)(4326008)(2906002)(8936002)(8676002)(41300700001)(54906003)(316002)(6916009)(70206006)(70586007); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2023 02:09:57.8787 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e0588b02-fff4-4c67-1e95-08dbbd6c848a 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: MN1PEPF0000F0E5.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR12MB8950 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 --- 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