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 EFF284415C; Wed, 5 Jun 2024 10:42:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5992240DDA; Wed, 5 Jun 2024 10:41:52 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2065.outbound.protection.outlook.com [40.107.220.65]) by mails.dpdk.org (Postfix) with ESMTP id 6E49B402DC for ; Wed, 5 Jun 2024 10:41:50 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lZIwzm96Ejdb3aykeo7oSVN17TFDLu2YINLFYq5IrIJ/ODp/TtaHKCJQo2K6kvtQgLrizMJXYNSd4eKvgygnQPTPis5xfBMKt58k6qOPfRVMzzIbAVsmyTQni3HsnItyUOziHsOA3wa3Ow0UUIJwfNkIzODIYZiqFRaFWjJVG8JnTYwvSAi7tc+88F586c+U6nqRBw0kCq8b6o2K3SzVMGwehdLvXBMHQ1C5zgxHPcfh7bOmS5ip87x9yTMypG2oW1r/MKAuBZ0sVYWX+ghCBzwEV5q47EyJL9OoJ/AMBCkPDWGfoyiqnYz9w+pHcDWF5kFmc0pEkRfRDoqiRp9GAQ== 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=mRv9Z2hm1Q93SSEUB0Fjo7EZn3Wu2mMGAzWBR4m+Vik=; b=K7vOdT56XMe0wiwnAKAaUzdh+p8IzjUf51U79aAhAPIWTPllCtSBKgFyC98JfHpZnYBqkPiKKli0VGl16asldO2ltldKE3EXv9vGD64zvBDonXCYOAzU0kEfb4bfDTqt65oXYDJJqTAzkHwjObGfUfyFriLBJ84UPJf1xFTxjk0f9vR+Ed/XSQGBo5aGGJlr8nWgWTOijkgjoGYT8KUoHoa9CuLotFJ9tkakO8hdYj3e0dWgPsC7XQGC0Dxbe9XP71SgOmFiN1tmU6cph0iyn6OidOI4aGGSntnFWd46T/bUUPlLGZjAuXbl1e6nmLKt4t4MZ54fqRk5fb/Vyy1kJQ== 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=mRv9Z2hm1Q93SSEUB0Fjo7EZn3Wu2mMGAzWBR4m+Vik=; b=NL+ADD2DDv2NQfhr0Tt4hQLXo6+EUCc6JP44UkAW9QrDzWdwqfoJJHP1NCsLoFoM51k8oCRpoCK86ywOSkU134RgjswxASLb04Cxpi9njO+NCl6r9ybW8vxkk3oejxIA/pfSQlQXixnhmI8kfZPGY6wHzWbcRE6R4IO6zNhcxvw+wjAo2ExYiK5cp4syXZ30lZ5iQWguELgDNP4gb9//VP+gsuuoaPCTnkB/r7ps3p9klmN6ym/IWS4nHjo+uhMp8Bo8RZijqFPS1qvy3x7tYoVQHJ7kG7cZOmjvFpjjug0u1nSdWa3bZbN6OWP1lDWPeETUCAmSuLLXTWOAPIOpKA== Received: from SA0PR11CA0127.namprd11.prod.outlook.com (2603:10b6:806:131::12) by BY5PR12MB4195.namprd12.prod.outlook.com (2603:10b6:a03:200::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31; Wed, 5 Jun 2024 08:41:47 +0000 Received: from SN1PEPF00026369.namprd02.prod.outlook.com (2603:10b6:806:131:cafe::c6) by SA0PR11CA0127.outlook.office365.com (2603:10b6:806:131::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.29 via Frontend Transport; Wed, 5 Jun 2024 08:41:47 +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 SN1PEPF00026369.mail.protection.outlook.com (10.167.241.134) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Wed, 5 Jun 2024 08:41:47 +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.1544.4; Wed, 5 Jun 2024 01:41:38 -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.1544.4; Wed, 5 Jun 2024 01:41:35 -0700 From: Rongwei Liu To: , , , , , CC: Dariusz Sosnowski , Aman Singh , Yuying Zhang , "Ferruh Yigit" , Andrew Rybchenko Subject: [PATCH v5 2/3] ethdev: add VXLAN last reserved field Date: Wed, 5 Jun 2024 11:41:10 +0300 Message-ID: <20240605084111.87359-3-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240605084111.87359-1-rongweil@nvidia.com> References: <6114865.NeCsiYhmir@thomas> <20240605084111.87359-1-rongweil@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: SN1PEPF00026369:EE_|BY5PR12MB4195:EE_ X-MS-Office365-Filtering-Correlation-Id: 3a2070e3-a40f-4edf-293a-08dc853b564e 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; ARA:13230031|36860700004|1800799015|376005|82310400017; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?w8RuxlEMjIY/5Rq72pj3rvNldL04ZkCDMMfahvPIvbeo5n+EEGnvuPL1jLGQ?= =?us-ascii?Q?ZDEov9D14Mx8YPLRLdo692weGUP/qZgHhcCZ1wzcQZ5h14prTzoXemokpjnf?= =?us-ascii?Q?TygzOM1FytNBQE6ZdYWOBNtSSduk0MEQmeFWKI0EIFMITq2fBEzYa4nGpL/X?= =?us-ascii?Q?7bsypUBylrjzhE3BRdFfWFbmCmTTdA5ytz5Sz3pZB2TW4EOwZ8oygFQiyGUr?= =?us-ascii?Q?m6IILMkiUe8FrGYrzYbE2m99DJQbpQkVHCGM8jctV/7HDzkkQ1KYR+R975Bm?= =?us-ascii?Q?9/o+MMffjDt1KdVRJypVf4/MO7mn7Upm2tU7JdEKHzhQIAgMm0y94pDQA//T?= =?us-ascii?Q?QNFoRlPxhstjd8SPLHIxjjsPHijoXZoCuUj4RnpSay8O/BtfP4mWTq0vJ98U?= =?us-ascii?Q?FBb46AAdPiY+pLB12pJRpJu0HjjxqpazYh+NWiEuGKNxcvHI6ZSTEfWm5RW1?= =?us-ascii?Q?gCnJGx+okvyHRjZ+66+eix2fG86C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?us-ascii?Q?J1HK+4ryHbcQDPMQCvA7dFcwuXUepZpjKFXoJ/CVPDJaxJ8DAQ=3D=3D?= 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)(36860700004)(1800799015)(376005)(82310400017); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 08:41:47.5732 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3a2070e3-a40f-4edf-293a-08dc853b564e 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: SN1PEPF00026369.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4195 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 VXLAN last reserved byte in rte flow packet field. Add 'vxlan_last_rsvd' as the modification command string. Signed-off-by: Rongwei Liu Acked-by: Dariusz Sosnowski --- app/test-pmd/cmdline_flow.c | 1 + lib/ethdev/rte_flow.h | 1 + 2 files changed, 2 insertions(+) diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c index 775ce20fc4..f3d6a2cfd7 100644 --- a/app/test-pmd/cmdline_flow.c +++ b/app/test-pmd/cmdline_flow.c @@ -1006,6 +1006,7 @@ static const char *const flow_field_ids[] = { "ipv6_flow_label", "ipv6_traffic_class", "esp_spi", "esp_seq_num", "esp_proto", "random", + "vxlan_last_rsvd", NULL }; diff --git a/lib/ethdev/rte_flow.h b/lib/ethdev/rte_flow.h index 6e8ab1d4c7..74cf2e0f59 100644 --- a/lib/ethdev/rte_flow.h +++ b/lib/ethdev/rte_flow.h @@ -2428,6 +2428,7 @@ enum rte_flow_field_id { RTE_FLOW_FIELD_ESP_SEQ_NUM, /**< ESP Sequence Number. */ RTE_FLOW_FIELD_ESP_PROTO, /**< ESP next protocol value. */ RTE_FLOW_FIELD_RANDOM, /**< Random value. */ + RTE_FLOW_FIELD_VXLAN_LAST_RSVD, /**< VXLAN last reserved byte. */ }; /** -- 2.27.0