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 A90B24415D; Wed, 5 Jun 2024 12:22:20 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3766F40DF8; Wed, 5 Jun 2024 12:22:14 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2062.outbound.protection.outlook.com [40.107.94.62]) by mails.dpdk.org (Postfix) with ESMTP id 9C6C040DF5 for ; Wed, 5 Jun 2024 12:22:12 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OCY2UGkmIAeluGfZ5o1xcnzGDfu2D+uGWO4ouGIeCCXsPUGAI8+eXT97POiPtc+hojLrvWdy0/YductmrZqfcFes6EtEOPU5tT51HZk422HPUFZoBtkVY3TD4gRaEeB52q6NAjmlO93vPkVauSGMcUYqrreMZNy6t/fLEZ8mVeeJg0Lr3V9fUtju481zf8QXnPUHsYtVBcecZfUJW3wbREerrY88CZG8wDeNE2rYJBTnf2tA09et80p04nj4jGnL9kTA2sDa3Ze9mLZHUQTyT5VsS9HeidhttSkBBtU3hvEyChAQ51GdgOfO1rW2PN6HmVmtq3c26ff6zYr3Bh3tmw== 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=ryQfnSHTxVVZijj30/6w44JWk1eL4v8TEYh+PTWtkMQ=; b=NX0yYzOIyyuC8e3B+Dw1w/uDfcYcrXC0g7BRv+8HLZxsW0bm4nXmcEAXbUq6M/t6oiSK/TWYFJXFT/lYqT6mzD5z2zehOhphKCG5Np8qrW1WwruVl0GA+k9sOrxJ4PDqssqMETDv4a2v441YWEVyu4DdN4h88waJnZiee9vAjmpwnzl6gMZxABpfnHqTkVhrFosRxFIz9UwgdvFvFSLPlYea1qWZMJ6j+V6x315RqOaTGTvC3UXVQkxDQ7j6L2dSmunoDYz350sEkvPn1zfThihmMjdkXgaQFos8KLmj1KRlDv4tV8Ejrs0OJ7VABVAqM/Wrl5PpCQeWhmCwFi4cKg== 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=ryQfnSHTxVVZijj30/6w44JWk1eL4v8TEYh+PTWtkMQ=; b=i6fSMxYLf2xVM5otXlG6QDLv/n7XS7CXDMRIxiKMT0MgiMvvOWmfbmul5VJDv6nNqGZHbhkfO9mPLLa4zwhT4QVcBj75XN4y3sVca1vRRtfwguqciF3yFGODGidrLMUKxsba4tQxIEOdVvsMRq0lRZgVKbe5lNcFDX7U0VTkhz9RdPu/QCED6R7fyZ9Rd7dC5EsGdT2hpH4dz7sDkUbye8a7yLf9cZKfmUtHdffzT5GPH+pz/SW/zr0UMWS/7eGTh6R2gjK2qO3+Y/RpGvW03HrqCN1/az1r4jIYcVD8Q0yzNpwlyogQoz4PI5RUnRbC5rSGiq29MgrZkbokAI3nMg== Received: from BN9PR03CA0782.namprd03.prod.outlook.com (2603:10b6:408:13f::7) by SN7PR12MB6765.namprd12.prod.outlook.com (2603:10b6:806:26b::18) 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 10:22:09 +0000 Received: from BL02EPF00021F68.namprd02.prod.outlook.com (2603:10b6:408:13f:cafe::50) by BN9PR03CA0782.outlook.office365.com (2603:10b6:408:13f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7656.16 via Frontend Transport; Wed, 5 Jun 2024 10:22: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 BL02EPF00021F68.mail.protection.outlook.com (10.167.249.4) 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 10:22: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.1544.4; Wed, 5 Jun 2024 03:21:57 -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; Wed, 5 Jun 2024 03:21:55 -0700 From: Rongwei Liu To: , , , , , Subject: [PATCH v6 2/4] net: add new union into VXLAN header Date: Wed, 5 Jun 2024 13:21:34 +0300 Message-ID: <20240605102136.117614-3-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20240605102136.117614-1-rongweil@nvidia.com> References: <6203165.YiXZdWvhHV@thomas> <20240605102136.117614-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: 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: BL02EPF00021F68:EE_|SN7PR12MB6765:EE_ X-MS-Office365-Filtering-Correlation-Id: 9fa9d987-9452-416a-2560-08dc85495bc0 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|82310400017|36860700004|376005; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?MGYPlnqqsoICF7ulZBe2oZd7EJ+RNh7GQd/YQVriCuo+/G4G4KNyGBMsKMk+?= =?us-ascii?Q?Vy0YChJvYdSJ8rt30FlYAAkaK/67XGs/1OtqglihUM7LcBLzPuTJHDUclAv7?= =?us-ascii?Q?PZRe+lDRuusInEsrUf1JQZdr7GzmBfh//HnWKI6YgwFSed3mehTH6yKbjfhR?= =?us-ascii?Q?lPPEcVvUHVTkRAwIKW2YpYJSTMCMOkAnb973f8d5SEuAMOngttK1OKRbn84W?= =?us-ascii?Q?WbAgKaYLScARCxIAA0hpSx7synhOgnJCqqGgmpnrNzzhFYqNwoTqzob5Yj4F?= =?us-ascii?Q?1/+BWpy6JuuDZ35qFGatN3FsxIBbUQcPn5buRkP3yz9RnPBmV0+wN0x4QPK8?= =?us-ascii?Q?P2mzHqa4Lo6kDdYu5dFcnRU4Xy2ecqsR5NU6eAcnYoXhqVwmsOhg1HoDBMfF?= =?us-ascii?Q?RyGmf62mpsSqqX9XUPeDBZAKBjR8mMmG6WtxoM9a4Hd5y1mvV+NnN6h3BwZA?= =?us-ascii?Q?xFbXyRQtyxrGv9l5jPARM2/8twdJDp7E7lFum0rquArUO9vmWI7rP5SD5w2F?= =?us-ascii?Q?F4AEBJ3JlKcrNMbbQ6l9neoZGggF3ZB4xbJgGeNQInCiHhApUtEXk/g0WiOW?= =?us-ascii?Q?/ox0NeZQhvafo891Qbn3Xq+gGeTuUJOFrtS7vLGaUApvn1fW1j1qYiNE/zx1?= =?us-ascii?Q?ccgKs/w6O2ywSbxN3d7z3uLcsEsVnur/l1lsFM8fEpqmGL5KP2n9HmjNTozz?= =?us-ascii?Q?FLgRVAOp1pPd75BcZmM7vAKKk9BCXPxOXHKAfAhcXMAxai2E6FRJR3gBR7WS?= =?us-ascii?Q?m0W91ThrsenIOXNnQABDwpaNhCwzZzoRkAy8IZegjPjU7yZPAxybKmzGAvAm?= =?us-ascii?Q?nM1rl3yywVR6/ZFRrp2qF2wnBFlC0EdJvsnBrFvxSE+eVHdu5BwEHe8KdxZm?= =?us-ascii?Q?45BYujDu3wNqrawY135zq1IOMxRwBB0UblhnAOvjRNFKD6WazBbyJd/fInBv?= =?us-ascii?Q?pICzw3IiYdHkl6BIcUNz+UYub5pfXAZ4GJ1qHO2p6IrjCNRrwfxhRUKfxKbc?= =?us-ascii?Q?3PEuGHggvdZcTn1hnv8boe5AzxvtD80IVJeY11n+Idp9Gz9q7lVDvYmMc/XU?= =?us-ascii?Q?iZBDQ4zez1h9Kpb2M3FAXePKFLwr9WATgHbDduE5kS2pAKGF7D1y796W4NAa?= =?us-ascii?Q?Zua+wdPuBU/3uLUWa3gK31U1NAenbkQ5h1VbGHXQQFRS2Fm1vpAJy5EHM08P?= =?us-ascii?Q?lHuRnFjf8LUz64nSi++E2nAtVnEi/u9PQCMCOu08uBFd++y+Pv+TcBxctzsd?= =?us-ascii?Q?wZmvVzwDm1W9peshfyiOvEVzLTkEzqnJLH/+aGSoSbuhxBQR53AmsMEDQqoF?= =?us-ascii?Q?RvCfAPDOTIflFe/MTMlEac87sF4iWnkRkd2SlgEA7VBOcmrUysqCao3KRfWS?= =?us-ascii?Q?4uYBEbya+1bvmgxf4phFaGXTXXtE?= 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)(1800799015)(82310400017)(36860700004)(376005); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2024 10:22:09.6162 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9fa9d987-9452-416a-2560-08dc85495bc0 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: BL02EPF00021F68.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6765 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. Signed-off-by: Rongwei Liu --- lib/net/rte_vxlan.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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