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 B408444153; Tue, 4 Jun 2024 14:39:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54C0B4374B; Tue, 4 Jun 2024 14:39:34 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2068.outbound.protection.outlook.com [40.107.223.68]) by mails.dpdk.org (Postfix) with ESMTP id C9FC74374A for ; Tue, 4 Jun 2024 14:39:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HZIvPQVb1Y/tfR7hKhVWTvurXRYD935SX/5IlTBdRgbDzMbtzUC8hY5naDXgnc+9OMVzlnm4ByDDCNH4PCojpmYoRddd3HW1sUHqHjWqmMZ/ESVj4SKtNoxBH/CogOFC35YSThn/w5WrKh7KlKICW6TBlqzcjA9FcAyR5lYuAwrr1Z/ZTGmBU55MSzsKWnvrnjGfD3tlQWPYqSNWsJqVwXa5tKzg4rTDQX5ja3pc9037Xm3DCkCyWQEPcphWPE+uhdzXhRpUcA2xV0Bqeqal8fNA2F97m43wJg5KXf616d/rD9Y6/9IJnOe45SKyFBDcBnyj7hCiXPFxAddfk0GUEw== 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=wRFc2TKYwCFi/R5sc84hViubiHa4eH8/HSJe9ure3NA=; b=oCWPBGOXdmBQ6Fef2ZA3q7A4zjH/q4HjSOEr64O/TYZYDMsMibD41AA3JhquVG+65/b+QieQLViMCDiaBc1fBGDCVnQelhp4p4+5702hzaTfFXrW1750js4jj/tzAXHzKSezMS7iCqm1+RyXYFRWhL+MKKiVX4qgsfGtPrYcagd/CEVVerPGPhjoaZ2r973HKE71Ob0gcqIdpgcetnlnM0NYPIfEqQTBlxABz836D9ouhFLfu30VEbkTfkQ40B+akZuLUL2iPPTZi7dWhBSqNQmu+xeoGH2Jj4LYHEOW1d+hBmzWOARa6/XKEDixA7bjbtmBi9/k9oy9UuD4/iW3BA== 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 (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=wRFc2TKYwCFi/R5sc84hViubiHa4eH8/HSJe9ure3NA=; b=RojXnB7xeE4RuzRR+nIfXlqYfS4uG2jJMREVxGWlOHQT8kBY81lrGkTb5Di3CM+bBj21ncEcnEDYCbaLkFC46tcRQX3QVK2wetFNrmm1joUvcPZmEiJGXI2x412bgnT6UB7jm9mi/qiLk5wepyD2vbfHoT/alYREMKDnDaUOZkZSaPjpo34uuNcNtkuHoN/vyEYC/kL/cpxNMgDgG/hYbMiRnRmlGbwpSgo+Uj3WutrUipEzLdz/Nyp8rMjgECCGcuWv/HqoO3nhMgcxxWK+jLyL1DsetrlENoYxJjr8vvDehW2NlTR5jvDLij+3L8smHK/du+G3OIKiaZNMqDdgSw== Received: from SJ0PR03CA0199.namprd03.prod.outlook.com (2603:10b6:a03:2ef::24) by MN0PR12MB5786.namprd12.prod.outlook.com (2603:10b6:208:375::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.22; Tue, 4 Jun 2024 12:39:23 +0000 Received: from CO1PEPF000042AB.namprd03.prod.outlook.com (2603:10b6:a03:2ef:cafe::da) by SJ0PR03CA0199.outlook.office365.com (2603:10b6:a03:2ef::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.28 via Frontend Transport; Tue, 4 Jun 2024 12:39:23 +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 CO1PEPF000042AB.mail.protection.outlook.com (10.167.243.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.15 via Frontend Transport; Tue, 4 Jun 2024 12:39: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.1544.4; Tue, 4 Jun 2024 05:39:03 -0700 Received: from nvidia.com (10.126.231.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; Tue, 4 Jun 2024 05:39:00 -0700 From: Rongwei Liu To: , , , , , CC: Dariusz Sosnowski , Aman Singh , Yuying Zhang , "Ferruh Yigit" , Andrew Rybchenko Subject: [PATCH v4 2/3] ethdev: add VXLAN last reserved field Date: Tue, 4 Jun 2024 15:38:38 +0300 Message-ID: <20240604123840.432044-3-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240604123840.432044-1-rongweil@nvidia.com> References: <14937324.O6BkTfRZtg@thomas> <20240604123840.432044-1-rongweil@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 rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PEPF000042AB:EE_|MN0PR12MB5786:EE_ X-MS-Office365-Filtering-Correlation-Id: 75ddac19-c053-4a2d-ee57-08dc84935cc9 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|1800799015|36860700004|376005|82310400017; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?lhzJipZQOjVsaAKLJxhPXJRiUquQoWVHb6k0AB6pPLpv+YiNvJa0H78woGtY?= =?us-ascii?Q?8A6CA0QBFc4FAxiqpzW3WDJOcxxc1emuE6lfDRz4d7yBH/o9QDCpe/zj7fSC?= =?us-ascii?Q?CoyYYLeMiGusl9fo5y61oEYye2ZaAsplL5IQouYNE2qlGmLhv0laZV+g2Nz8?= =?us-ascii?Q?EtdNNSN61xSqFxunHDaqj8s0RBPnT258ELZzVZfbjvyWH0I9HI3Y7Pas6nxw?= =?us-ascii?Q?GESVvqNPl4UV8K8IimV8T9JURMWzBkTiLGxDfxwscdUvqNuG0V/wwXr9ypur?= =?us-ascii?Q?2Ov+u5sTIRT87ZnidJ0M7xVIteNc4PrffFo596bFQuuGyxH9qf3Nrd4uzsJU?= =?us-ascii?Q?pteeyRZMCqZjqGwWg/b4VHRSsoBGd5Wf7nn57DaoL/8JbV/hsZTdfwhHtKrn?= =?us-ascii?Q?/0iGRQTBZGjMMV36gYuEPfYobFQb3zkF6sVD6Gu+2gMHPNokRtQXl4qevz7n?= =?us-ascii?Q?dc1hRxKRjFfbEsf96WwSbu9emTr1JQBu1smKAkL7aP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iFGOv9UPf9LgWosGAH?= 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)(1800799015)(36860700004)(376005)(82310400017); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 12:39:22.9689 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 75ddac19-c053-4a2d-ee57-08dc84935cc9 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: CO1PEPF000042AB.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5786 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..5a1dbfc084 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_RSVD1, /**< VXLAN last reserved byte. */ }; /** -- 2.27.0