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 450A74389F; Fri, 12 Jan 2024 09:03:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7350A40A6D; Fri, 12 Jan 2024 09:03:14 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2040.outbound.protection.outlook.com [40.107.236.40]) by mails.dpdk.org (Postfix) with ESMTP id 07FAB406FF for ; Fri, 12 Jan 2024 09:03:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TQ6MoZIUHxJF/ZcPKzrZ+WjU4wRy8S1Q6hXOnroOyuEIbo/Qjo/oCHvkjQoTeJOCmtl7Zi7qa5SuyAfiIL9gmnbvFspxn2awf0xCqFfeyIfP/2Xhcb2myRrxZfg0mB2U5BZyADrYwIV2HHSpGDJmOomyWradmu33FVpID/lQP8g7jRz8UK9ldPWiC8SzWhE6fD/mzV0TAM7Ngb8jBJiA4hu3F+UJ8m730CEbjxAyxkosvGdjlga2zKyRuGPcRBjUfeYSbdcHoDV45hajQznowXkj1TS4Nmnf1YxaIumsaUuInMEwD7uuEzAFopJI6QPIw5lJZlx3EqmTMME1LD6iEg== 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=cOpDyO3blr19s+J+oB9L22WNx8P/xIKxVBww25uPxhc=; b=gsZtEwPFsc8NBWZMS6A6gz1Du/AkVp9C8XO16eTl7t4m4Ka/NeHTY2t3NP1pxBHLW6JHhAf+cXuOL4SU0z1rU3NDR+S5j/hcnycIaGO5h8juUiTAH0o4PsKSJqRErQ70SWeBmtuK59+mvcXKZ+CptoCOTmbUUpj+rrZ3ju6tEXw4/0WQYZmqMDovTnszfNYuaWrIJYKDXfuaqM4dHZzBfEau2hwryUPVjpP8RGl1GB6b8gpFHfDU6MAta/T2m5EB6aY1UKAtHPLQiRwqwbHUaFfDXQtuwaX6nzsTM0q5c+KqV81+kzsrCLoZiXznEetxMQvK6h3Krq5VAzkauV75rA== 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 (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=cOpDyO3blr19s+J+oB9L22WNx8P/xIKxVBww25uPxhc=; b=Pu0tLWt6qXYVDiA5pIU2p6wPI4l9XW3CpxV92EokvdO0f58qDXe5p5vVPgjp61RjiubJd37B5jAzwthMsnu+fXWNuVUyJBmxO9TBOAt4oVsLKaGvmrNMlTHfNV6X15w/AuIqNxbr+Tg9jzzizY/aAK5dsI3Jd7/7IDEdi4m3RFYTcGmhNYEMgXrdJJRiYXFfGNTrMVeeL5EVmnREtgYyyFkRysjq7MOIrjQmB9gdQQ7K9YgfRpGOV1k86uggtGvdlCesvPZ9JBLHey426lWlkRPbOojRnJK3IGMJai6n+hJPbYijlMTDUj3cqj5ReCbTSe0+cD1OoNKA3kOyLmvN0g== Received: from SJ0PR03CA0170.namprd03.prod.outlook.com (2603:10b6:a03:338::25) by BN9PR12MB5338.namprd12.prod.outlook.com (2603:10b6:408:103::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7159.24; Fri, 12 Jan 2024 08:03:09 +0000 Received: from SJ5PEPF000001D5.namprd05.prod.outlook.com (2603:10b6:a03:338:cafe::d5) by SJ0PR03CA0170.outlook.office365.com (2603:10b6:a03:338::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.19 via Frontend Transport; Fri, 12 Jan 2024 08:03:09 +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 SJ5PEPF000001D5.mail.protection.outlook.com (10.167.242.57) 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:09 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) 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; Fri, 12 Jan 2024 00:02:54 -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:50 -0800 From: Gavin Li To: , , , , , , , , CC: , Subject: [V1 4/5] app/testpmd: support VXLAN-GPE reserved fields Date: Fri, 12 Jan 2024 10:02:09 +0200 Message-ID: <20240112080210.1288356-5-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: SJ5PEPF000001D5:EE_|BN9PR12MB5338:EE_ X-MS-Office365-Filtering-Correlation-Id: 161152f5-52c7-4781-4540-08dc1344ea6e 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: 0ETz5CBT4VDiJ42V/XbJwFVw2HHe4e/iOB0K+37ooXul/JH76QSXR+P2Eb5T1twa+4dbn2aK0K4hDe1eQPXb4NM2z+ozyKgs3+IvrlGy7+3doQJLYChmORbp4zcsGVFLa2IiHh9tOGCMaMP0gXoKaIbiTfRH9Xs52gRPFpHBenNhR/rCADO9KUHQZf0N/QvcS4A/y4JiaNNysrz25iApxoRpkZtuHvhyy6MVr3LWCJVKaEDa/lTC8AmSth3M1mEs3NrirOnTLrdTau9dK2jq+IXMPQOF6ItDY4MGTFG/2UGzVhfZIfVv6hUnWePkCotbdfw7UB3sfMs8zZtcXAb9Ixgq1rIkxrILMuzvcYDTwkG9teLBcAyE6/c/uI0zq4Ytlbmh+UF/iOf9MKNnRN05dy1Ym1BHAz2O/3W9csN+RXVUBF5TQsK/8hF87z0vkWVLAsSlCuv4xpshix5HtuPVW+/O+kPWsdjakPWL1y9+KQIS82E9dWTd6ETIhW+hbOm4uxgL+qD+V79a8CjaBeHobb1A3h6VcUSov8ljeRk8bon0Ryex+T/aP6DAMMF4QqOZ26YJMDSRNHsKsxXzkQEMYL15IJQtTWWr6nfVLouvnr8b4dzCpqF/1oAfexP6dNxMddbN0DbcKwNdiGUWYH8S8yUx8EUxhUnSP2Q0zyWY3hrSQ/8XwSqJypt8ATJOpExKMXzbr7+k4l0V/AMnvopxZMwmjeyBdz2cXuLMB6HVAXyPWX5BKm6hP/yCSQysZS6L 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)(346002)(376002)(396003)(39860400002)(230922051799003)(186009)(1800799012)(451199024)(82310400011)(64100799003)(46966006)(36840700001)(40470700004)(40480700001)(55016003)(40460700003)(2906002)(6666004)(36860700001)(5660300002)(478600001)(7636003)(4326008)(356005)(41300700001)(36756003)(8936002)(70586007)(70206006)(110136005)(316002)(6636002)(47076005)(54906003)(426003)(107886003)(2616005)(86362001)(7696005)(336012)(1076003)(26005)(6286002)(16526019)(82740400003)(8676002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2024 08:03:09.0160 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 161152f5-52c7-4781-4540-08dc1344ea6e 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: SJ5PEPF000001D5.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5338 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 rsvd0 and rsvd1 fields in flow rule pattern to testpmd Signed-off-by: Gavin Li Acked-by: Dariusz Sosnowski --- app/test-pmd/cmdline_flow.c | 20 ++++++++++++++++++++ doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 ++ 2 files changed, 22 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index deb2d80301..1d726835e7 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -402,6 +402,8 @@ enum index { ITEM_VXLAN_GPE_VNI, ITEM_VXLAN_GPE_PROTO, ITEM_VXLAN_GPE_FLAGS, + ITEM_VXLAN_GPE_RSVD0, + ITEM_VXLAN_GPE_RSVD1, ITEM_ARP_ETH_IPV4, ITEM_ARP_ETH_IPV4_SHA, ITEM_ARP_ETH_IPV4_SPA, @@ -1791,6 +1793,8 @@ static const enum index item_vxlan_gpe[] = { ITEM_VXLAN_GPE_VNI, ITEM_VXLAN_GPE_PROTO, ITEM_VXLAN_GPE_FLAGS, + ITEM_VXLAN_GPE_RSVD0, + ITEM_VXLAN_GPE_RSVD1, ITEM_NEXT, ZERO, }; @@ -4946,6 +4950,22 @@ static const struct token token_list[] = { .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_vxlan_gpe, flags)), }, + [ITEM_VXLAN_GPE_RSVD0] = { + .name = "rsvd0", + .help = "VXLAN-GPE rsvd0", + .next = NEXT(item_vxlan_gpe, NEXT_ENTRY(COMMON_UNSIGNED), + item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_vxlan_gpe, + rsvd0)), + }, + [ITEM_VXLAN_GPE_RSVD1] = { + .name = "rsvd1", + .help = "VXLAN-GPE rsvd1", + .next = NEXT(item_vxlan_gpe, NEXT_ENTRY(COMMON_UNSIGNED), + item_param), + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_vxlan_gpe, + rsvd1)), + }, [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 9c6b04442f..50fad11fce 100644 --- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst +++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst @@ -3704,6 +3704,8 @@ This section lists supported pattern items and their attributes, if any. - ``vni {unsigned}``: VXLAN-GPE identifier. - ``flags {unsigned}``: VXLAN-GPE flags. + - ``rsvd0 {unsigned}``: VXLAN-GPE reserved field 0. + - ``rsvd1 {unsigned}``: VXLAN-GPE reserved field 1. - ``arp_eth_ipv4``: match ARP header for Ethernet/IPv4. -- 2.39.1