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 E2DF54414C; Wed, 5 Jun 2024 15:05:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED2E840EE7; Wed, 5 Jun 2024 15:05:20 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2068.outbound.protection.outlook.com [40.107.95.68]) by mails.dpdk.org (Postfix) with ESMTP id D251140EDB for ; Wed, 5 Jun 2024 15:05:19 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L2XcfszdEHaEtgemmd980a22su3dYL89nLbW1OWkf3xHKo4O9qPjYv19xAMCb7L4ZrKm6KVAgY1zvB/9CH8MoBtOEISu1nDj3tefS2zad1sK82AeFhF1MeeWP9ZL++THpMMcS6z/QlSciFu1MK/ZInHlEws80tL1tJJl64MbQgdNGi9R411jZmB3boNfMi8AGYK9D+UniH6ku2QVlCNtW4Q4k/Lv1ZQyqP+uiKY4i5UbpbM3POF/s3anOFhsvxpduL9Jih5aZeSCSTFxEz7NF0fogPXAUVWgLE0UFttptCirw/R5KhM3A8Ex6nKvdky3NhJ3p5ES8u0DD7Svq/99Dg== 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=MWVUrp+0jRO01HLGp8tMa2CISQExdPbRnXisCoL5CDA=; b=ICpgoEzDEzwZtzvSnHcDvo1dzdBsp4X0w9cPjEQMoZsDXRTm8aLx1eSDPzxu1P2sNTdtyyy9sSJ2Dx8GTRL1MwBcCDk8WOzsNDL8cOT1E0Lrx0+VNhnY49LFh5wAg7j7qkJGezbSTJVZahsFgS/6qlfObvH/hvPOqBHG7Z1lpmuHX5qN9lHq/V687/iTXoxIYTdJ8AKwRBdqMfo9mnVq9VpUzfAnyfV6xaB1HgFEDGaBN2Sy5MUo0AfLrTgDVDSxcXzGZ+WZWKblJbyE8GQVeKHOC0TMpZq01lUUoCes7tyRL6CywlB0F75vzc966qFCOsxhmR29VAUvHpKR/9MWiQ== 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=MWVUrp+0jRO01HLGp8tMa2CISQExdPbRnXisCoL5CDA=; b=gNKcfkorZm/QtX88FrPS+DjRV4oO+k+JZe1LP6wR1sDsyzXZknFNv4qoH/lhONqKqovnQ9/cO9OwTo6PN61z/x1UfHGDfbgAxzNPOkFULC2scRe5rzysZbd8s8nnLYRW82ET2rytW74Ilu+kl9K2/QVJD1fa+qMurqf08A4jrOqugEV0vflxv/+rYG+36OXTpeeuOYusQIzwec7rywX2PMFP6JJ2FuaTPVKcb/PIxfG6UD2kALsCo65HRE0u34zTeMudgmZUx/TIA2ZR8+retOjYfyCjRxM8jGVVn5v4kJp9HgGr4oic58zacJz8pdJjkpiAQNGzRw3e7kx+QRrciw== Received: from DM6PR07CA0114.namprd07.prod.outlook.com (2603:10b6:5:330::29) by DS7PR12MB5815.namprd12.prod.outlook.com (2603:10b6:8:77::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Wed, 5 Jun 2024 13:05:06 +0000 Received: from CH3PEPF0000000F.namprd04.prod.outlook.com (2603:10b6:5:330:cafe::92) by DM6PR07CA0114.outlook.office365.com (2603:10b6:5:330::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.31 via Frontend Transport; Wed, 5 Jun 2024 13:05:03 +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 CH3PEPF0000000F.mail.protection.outlook.com (10.167.244.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; Wed, 5 Jun 2024 13:05:03 +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; Wed, 5 Jun 2024 06:04:45 -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 06:04:42 -0700 From: Rongwei Liu To: , , , , , CC: Dariusz Sosnowski , Aman Singh , Yuying Zhang , "Ferruh Yigit" , Andrew Rybchenko Subject: [PATCH v7 2/3] ethdev: add VXLAN last reserved field Date: Wed, 5 Jun 2024 16:04:18 +0300 Message-ID: <20240605130419.145311-3-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240605130419.145311-1-rongweil@nvidia.com> References: <1771398.K4a6FZZPjd@thomas> <20240605130419.145311-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: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH3PEPF0000000F:EE_|DS7PR12MB5815:EE_ X-MS-Office365-Filtering-Correlation-Id: 5aa7abd0-80ec-4274-86eb-08dc85601d28 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|376005|36860700004|82310400017; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?iQYQCeo1sjOviHen8W5mLWS+C/iks6s6cJiiI4sRsh/c8n7djcxfSGrHA/Z3?= =?us-ascii?Q?Fj743S7otN/lJF9S5kPmMG9gItXUPhfs+2O9D4uck5NxNpf/8A7xR3QqFfjA?= =?us-ascii?Q?+NSqo40jYBxDRVX270uJGmX00f+i3Rx10Rkm75cTv1uu8QVgxePJmJVF7+uF?= =?us-ascii?Q?l0coZDxi9aXwkJNuVLoHtsEPyk+uI8jTwNc/BYpNigESBV8pkn37xir1hUJa?= =?us-ascii?Q?TFLNxRtsQAJudKhHeDxCF5/mcQcMjApfXvz7BGq+dsPtbTYLevZCOrQdTc4W?= =?us-ascii?Q?2IG7XrFc9XgFkao9qDLr6oBHaLHmvGLMyCyFtxkAgZu9aott2uLa98LPHA5a?= =?us-ascii?Q?YYNHH9ieTzNKKzbD2O1KR0GcXP0sYWRJl6tWoww1I5/OpA40S+lcODIXnOc5?= =?us-ascii?Q?JEgnifaVs6qhMubw5clFYhOMpMSxU+f0J6BDBoATZ5SOsfbJXmA17x2jADwF?= =?us-ascii?Q?74+oLQ9XZugOJ8sY0l6ZC5USvv+Rp+ZshDgwd305gWjGbXUMczaCFAGB7+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N4/R61iOyi3e1Ynea1KN8g=3D=3D?= 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)(376005)(36860700004)(82310400017); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 13:05:03.0599 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5aa7abd0-80ec-4274-86eb-08dc85601d28 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: CH3PEPF0000000F.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB5815 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 "uint8_t last_rsvd" as union with origin rsvd1. Add RTE_FLOW_FIELD_VXLAN_LAST_RSVD into rte flow packet field. The new union is used by testpmd matching item VXLAN "last_rsvd" and modify target "vxlan_last_rsvd". Signed-off-by: Rongwei Liu Acked-by: Dariusz Sosnowski --- app/test-pmd/cmdline_flow.c | 1 + lib/ethdev/rte_flow.h | 1 + lib/net/rte_vxlan.h | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) 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. */ }; /** diff --git a/lib/net/rte_vxlan.h b/lib/net/rte_vxlan.h index 997fc784fc..57300fb442 100644 --- a/lib/net/rte_vxlan.h +++ b/lib/net/rte_vxlan.h @@ -41,7 +41,10 @@ struct rte_vxlan_hdr { uint8_t flags; /**< Should be 8 (I flag). */ uint8_t rsvd0[3]; /**< Reserved. */ uint8_t vni[3]; /**< VXLAN identifier. */ - uint8_t rsvd1; /**< Reserved. */ + union { + uint8_t rsvd1; /**< Reserved. */ + uint8_t last_rsvd; /**< Reserved. */ + }; }; }; } __rte_packed; -- 2.27.0