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 CE798426E8; Sun, 8 Oct 2023 05:11:29 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AA349402D4; Sun, 8 Oct 2023 05:11:26 +0200 (CEST) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2080.outbound.protection.outlook.com [40.107.243.80]) by mails.dpdk.org (Postfix) with ESMTP id C678F402A8 for ; Sun, 8 Oct 2023 05:11:24 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IeG771jFEEhoQW2G5FyMa+dPQGKvmIwcVw/qWFvWO+ZPoBr7UXui9trC7+1HiDwFH0P7s6nZulPaSp8VS4kI6AXFs9RUQcnqN7eZZQ0y0Dy53Og+gWSraRMX1o3duuq+PDx1OS9mo238YaXNQzDgHghqCYcFRwRt1cE1GmU1zfM+WvolycsMBHdZFkjvV2PSfh7XEjIJrOYJdk2+kFZm/yYrls43zvkicHXvnwbngUbfO0DDzoIyH8t/lvsnDd1+pP1T9c3CME6r3wWlt6PCUpek/2GP4V3ssEKBSvQxelgk/ND7RQJn/qAVjHol+ctsP0LVfwrx7sAb8kqJahkNjQ== 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=piB5Rr1uD27QfvCcc3DvKo2w5k/raoxgloZQJmQKu+Q=; b=ZJVqw97KNob6nDD9Ov0iskp998AbEtWehHAHYAUkixuTF9/1Ve3L2O9f5elMEHJW2TbnOYcGnT/Se5aJDh6qv6SOoGn0XxJ4pYc9IPCrENspIUDiFVcx6fIj8ukYoRsPNcnRotAEiDYds0P5mwh4omabf7Nv4L7YBLmaPrOy/4UXnlheDvTRtDdmyDrUxiikjk0rbQesntTHcyXiT+pmVO9b+GwLH4gPtakVv8f0kOhd+TePwwQvu5d3uJLa4Pn9iy/yVrZFOzHDgBE+gm4veKlrqPjVNzRg7mC6rkWjpfEi0NN6A4BIWEJ5GkqWKBR++DgoCmaa2LHOWaw5H6lL8A== 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=piB5Rr1uD27QfvCcc3DvKo2w5k/raoxgloZQJmQKu+Q=; b=Qnf0IFKjnBG8yy90YkFUnWiabJRmRO5RgbPWgwr1Rk9my0cxBMqk3qWl51tEX9JDVCaNQ/UZV/CRD9WetYuEG8ONx+h8OTvwCMb/UCQGBLGCQn7IMwmyo5zG0pWa10yELlbPrAuQ7XIioaEfplJuEssA7+OpXJAM46h1ZllPpdFenAZCO3ChhkDfE73HuauaiDyewgDhz+sCSCh9c7vbmqIXTtWGl09uIVNVodjt64VhgKdL+7zmwYC2vbpOnMHN5m1yFJeEsudxJpnwYocEE/n8fhyw3YXDqXEPPG8VRree2Mqx4rykdZcnQ9si21pyFb6jrvtrpVsTSPEaMzEZpA== Received: from BYAPR05CA0064.namprd05.prod.outlook.com (2603:10b6:a03:74::41) by SA1PR12MB8095.namprd12.prod.outlook.com (2603:10b6:806:33f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.41; Sun, 8 Oct 2023 03:11:22 +0000 Received: from MWH0EPF000971E7.namprd02.prod.outlook.com (2603:10b6:a03:74:cafe::cd) by BYAPR05CA0064.outlook.office365.com (2603:10b6:a03:74::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.20 via Frontend Transport; Sun, 8 Oct 2023 03:11:22 +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 MWH0EPF000971E7.mail.protection.outlook.com (10.167.243.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.14 via Frontend Transport; Sun, 8 Oct 2023 03:11:22 +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; Sat, 7 Oct 2023 20:11:10 -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.41; Sat, 7 Oct 2023 20:11:07 -0700 From: Haifei Luo To: CC: , , , , , Jiawei Wang , Dariusz Sosnowski , Suanming Mou , Aman Singh , Yuying Zhang Subject: [PATCH v4 1/5] app/testpmd: support for VXLAN-GPE's next protocol Date: Sun, 8 Oct 2023 06:10:25 +0300 Message-ID: <20231008031029.30850-2-haifeil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231008031029.30850-1-haifeil@nvidia.com> References: <20230925080746.16438-1-haifeil@nvidia.com> <20231008031029.30850-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: 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: MWH0EPF000971E7:EE_|SA1PR12MB8095:EE_ X-MS-Office365-Filtering-Correlation-Id: 8b3c42be-477e-4d39-a7b8-08dbc7ac3fd6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QKsFhTYx2EivlDrX7xoNPEweL+0D+ino9CmkYMTOxEv3hE9TJZG8ZS/2INXb2q5xr3gWLnmUi8rvgfqV0FSelWqYKOkMhSGJEwXWaPBfOggLWMUPEc5BFy4L5oBljOZ3jxczoutjMIoy+Dwpf7GV7VvnerF2mSUE3PPlkbMgx+HUp8p6NkDsOapH9gi/usLpyIh3sudpa2P9u3eCBH7N5wpNrTxSNqsg3gMLDY2DYp443h2QHsn9ed6mggf+SG0ElQiRE+wZodSYxcjAF218/D15E5nb4whZkkSOdhbo+EvAGytM/EFSlszmj/Qv4ULOdV8mY4qwBVETSZKRrUqXcAAapa8j2GR0QKcjkcfY71gFszGLUXIyWn35qwT4mi1pwwEFNqC2YltnAwULZsvMJuFMfOEQ3TgWRnsAiRtlwYW0pXD1MVeJpS/MH5Ap8XoHI1qyuQHGTJSfd2ZMWjk4uVYDQqTsyr7Ea3htieXCLQ7EPh1tEH/Q3117ndWY4kqCpzyDZ3Cm45NQl5kGkQROuJ4f0/ms4xFtMEMshOwHoPRE3wNgdOnfRftAItnmp/81/EkECOE+UWUm6xHYD1MUKV6fmYuO1L5cN8CeA+sXzwGDxEIvzQ6KiIRKp0Q2Ln1Rgodawo63apan8buGXnAnydE64TIAw5z6Ubb93ewozrmX41wjXUQgSL520twIhJkJ8asroUBEhD6P0oIMkenLK+v1fkwaQCzdNblFnhUIHz6jWFJD0y+hG9fGw853qvQf 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)(136003)(346002)(376002)(396003)(39860400002)(230922051799003)(82310400011)(451199024)(1800799009)(64100799003)(186009)(46966006)(40470700004)(36840700001)(1076003)(2616005)(6286002)(426003)(16526019)(336012)(26005)(478600001)(6666004)(7696005)(47076005)(8676002)(36860700001)(2906002)(4326008)(41300700001)(54906003)(70586007)(70206006)(316002)(6916009)(5660300002)(8936002)(55016003)(40460700003)(7636003)(356005)(40480700001)(36756003)(82740400003)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2023 03:11:22.0829 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8b3c42be-477e-4d39-a7b8-08dbc7ac3fd6 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: MWH0EPF000971E7.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB8095 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 95c0a19beb..8a4e06c50a 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -386,6 +386,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, @@ -1760,6 +1761,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, }; @@ -4813,6 +4815,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