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 5D5CB45CE3 for ; Mon, 11 Nov 2024 07:41:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 54EF64067A; Mon, 11 Nov 2024 07:41:25 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2079.outbound.protection.outlook.com [40.107.237.79]) by mails.dpdk.org (Postfix) with ESMTP id 27EFA4067A for ; Mon, 11 Nov 2024 07:41:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fHNFkK6MJR3EN2izkKno0SR7jYYk36rCXQCCLStyNrrzLV9HsMSjyoUZDI5AVBZnw7RbNIe8sXOHQaJ7tmnr/PqbQvZ0/rmfgUIymabAieDv3eOIYB/KD6U+UzoWCVGVJu8xhqSEGR3BrTe9wAnE0MqzpdDHMJuE+g44NEH6wsez5m0iKrbGY4NmkVTFeT/FhgzkhPxsegEJ0s8wpE44pvbF7VBbYROvLwv8NWj33Xqlu/fxTNZloYSI3J+38wvLfRO8VczZHSyVlzLYSvuCH85NqkCaBL77Mt2xGR7/Eb8JPiIYjvY+jSbkPWhukJq7yg/JLrK8/7hYH03iPgoxNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=r7Ut0jll5zRK4gP7sKZfxZ9swFysHLj0lkyQGj6JeHI=; b=AOOSYLvVYi4l2IkQZDLQOQC8yWsm0Vt5FzvvaRN6CVZYRiQ0HDSXYS7jt00PPsI4YB189cLZ2O7GPrnnnb+F4/t6SWjWH/OagqmFFpNBYPraXcGkZ8X/yh1/hYtfpjkL52mr4JkaDvZzCNCK8PWUvbtw6S1x0QitAZUGhZXwWnhS+Y3MPVGBMm6xXUR6EFQFQu60dtAcfsD4lbBBSGRPYxBux8lEfpvN+E3zGZzovELihuz4wWpAsaYL+EXt8Ic0BE+uNQnp4a0wplqYv/Y9umLsdDekHy5lmaksrr99yx4bzxLqNucMUhLwDqt0Yl5QX6aHk/zFe6VEsTTI/JHJzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=google.com 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=r7Ut0jll5zRK4gP7sKZfxZ9swFysHLj0lkyQGj6JeHI=; b=mrgcVUp4TipWJecW7Jw68opyFHKjMGB2OJY/uvLvKt2DBzdrz/ckQMNZfnpgkH6Hc1wYhD8OksbIwlAAMYTLqYdcEfpFfpaOtF/IqdVjyzjNM1LljgAndFPptZsxvlXAI4pfLBLuXkr0NjcCcvwsub5Nwwtv6EAI3LH0ACQ33Y2vTHhjQ9L4uBE8qVStQAlteka3pCI4I/1TSR7zbc15QnrQU/zV3xGYE/Zd3nyHdprt7CR6iQHvyGPbdeUPJFBKJ1pN/z7NM/eBvqI71Qa8K2MMhgXxSbZBMCkMlbYRgkil5JuPESMBreuxD2ZXi8KAn7MzDNfzHb8/NFIPHhlstA== Received: from BYAPR07CA0007.namprd07.prod.outlook.com (2603:10b6:a02:bc::20) by SN7PR12MB8060.namprd12.prod.outlook.com (2603:10b6:806:343::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.27; Mon, 11 Nov 2024 06:41:20 +0000 Received: from SJ1PEPF00001CE3.namprd05.prod.outlook.com (2603:10b6:a02:bc:cafe::ca) by BYAPR07CA0007.outlook.office365.com (2603:10b6:a02:bc::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.22 via Frontend Transport; Mon, 11 Nov 2024 06:41:20 +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 SJ1PEPF00001CE3.mail.protection.outlook.com (10.167.242.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.14 via Frontend Transport; Mon, 11 Nov 2024 06:41:20 +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; Sun, 10 Nov 2024 22:41:05 -0800 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; Sun, 10 Nov 2024 22:41:03 -0800 From: Xueming Li To: Joshua Washington CC: , David Marchand , "dpdk stable" Subject: patch 'net/gve/base: fix build with Fedora Rawhide' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:28:44 +0800 Message-ID: <20241111062847.216344-119-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.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: SJ1PEPF00001CE3:EE_|SN7PR12MB8060:EE_ X-MS-Office365-Filtering-Correlation-Id: d9953964-9a2d-4814-95ae-08dd021bda50 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?aHc1kxRTa71nxNW0pUisYlQESik+bQn81k+TyczwUKkx/Y7UOwPrvNKQVc+5?= =?us-ascii?Q?PijzjRJ9BWqL3vBp8+Z3vZF4sqhFHOENWvhX6UCMt2YI+pbv8GxLbEFYy+5Q?= =?us-ascii?Q?BPhp7P6+qbfNtA79ncxJLSamAsFLnjBTDBIwE16rX//y1fOPnjbW1V5bznFg?= =?us-ascii?Q?dBtTATUebA2ypzM9UD81OMcjdhCad7M/waYeHBCVHWdnThs2OfC6LGD+K5Ez?= =?us-ascii?Q?ewqAavMGWtydIC8ntfGwtNC1ug0ant5fr2zk+dQ9RR/y5jkZN4Osikk2n22Q?= =?us-ascii?Q?NbN3thJX+P0e6mJ6+IsItps+e70h6MqA4HGeaBZOdumwnmC1ugc2vWmPkiEQ?= =?us-ascii?Q?lDpOadst3u9jj4+zFeW1UfOdE64BJedT9zh3F1QURc2IGJokZe+cl+FhmWHr?= =?us-ascii?Q?6tEEiPwIDi3oP6Hzl6/QZzxGqFPsVNJtN6cYAISXxKsoHU1nw7FUtQTnKTRh?= =?us-ascii?Q?J9rcFXjCmyLFLspWHTcpXiGT06hOxNf8idIE9sIXGPfVb5fJ+Fdz92UZNWYB?= =?us-ascii?Q?ixnm5Qy1Mw4UOVTye1+9Ugmjtvyoh24qKVWiaI8J9ir0TTc3fiBiTVDBszjm?= =?us-ascii?Q?GNcIXsd9ezvdWsLNeNjht/PQamb5AIMCfdZ29gjh9d3n+kG+gIX9PDFp5Lle?= =?us-ascii?Q?74JoS9/55cAav0iOKhxE3bIMdEtWM9OrzV1LsOmioUbueoFThabdfeZsB6sx?= =?us-ascii?Q?mUdF62cNozthCQJKld430V3A2GZatOMwebQs+MV3vCFnFGDk/f/QADnR8c/T?= =?us-ascii?Q?2cOfvkvfA2TOuJ/mULsHY7qGSJZY7VLToMfeCle+BW0ns4uqYo9c7RDhQjLQ?= =?us-ascii?Q?JhOykGKPUe3ioG0wpyxvfnMhD9BIPg/3wcbrtMDdVEyzdIuNXdoBQYiGRQUB?= =?us-ascii?Q?Fknc3ye3tyrSJXmueJl6sbinGNrpf4K5BXBJzht/IPeF3WzyD2w+YXoN2TQ4?= =?us-ascii?Q?eMgg7PG02J5XiMOJa847hh7MvCmAc6bFtVkby1zH1hEphcKQ2j6lRNIg+qr+?= =?us-ascii?Q?N0SBnOvyxf7uZrYZBvLUgDY/Wd0PEGDPYA7XcVVdaVqKXgK3JkpEadzW8ctx?= =?us-ascii?Q?D1woY4/mJAk4WxtUfJp7yfNbswv4rwCX09uddTnaqstEo5Nyrhu53xeqKlLj?= =?us-ascii?Q?fJ8Ddh7iUd9eO20OXWK70MoF4/G3quc5iNqQK9OXigfvb0Og9yjGfSDaRIE6?= =?us-ascii?Q?ziO4s91dRXcZ7KnT9xdq9OBRoAobJrlKBr0YHAsUzHM0nBPz0sAzBVCg4oha?= =?us-ascii?Q?WP+VpcyaZfaKL52fsZMBL/2DDx4oT01ZWk801d2rNGeFn63uFID1LgSEumu6?= =?us-ascii?Q?zNyP5VzmxM341feYCdUid8BF0jDEdy2QnXJxyj1VZQAlKPF/9Qujr8sUZpLc?= =?us-ascii?Q?lBNfJf800wPGM30vJSZNCx4BllTTkwB/dbuKd1Q1f5vT3CbFXg=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:(13230040)(36860700013)(82310400026)(376014)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:41:20.6252 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9953964-9a2d-4814-95ae-08dd021bda50 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: SJ1PEPF00001CE3.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB8060 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 23.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=6f5a555e28d8578ac2ce1cecf373d5f4c02fcd2a Thanks. Xueming Li --- >From 6f5a555e28d8578ac2ce1cecf373d5f4c02fcd2a Mon Sep 17 00:00:00 2001 From: Joshua Washington Date: Thu, 17 Oct 2024 16:42:33 -0700 Subject: [PATCH] net/gve/base: fix build with Fedora Rawhide Cc: Xueming Li [ upstream commit f0d9e787747dda0715654da9f0501f54fe105868 ] Currently, a number of integer types are typedef'd to their corresponding userspace or RTE values. This can be problematic if these types are already defined somewhere else, as it would cause type collisions. This patch changes the typedefs to #define macros which are only defined if the types are not defined already. Note: this was reported by OBS CI on 2024/10/17, when compiling DPDK in Fedora Rawhide. Fixes: c9ba2caf6302 ("net/gve/base: add OS-specific implementation") Fixes: abf1242fbb84 ("net/gve: add struct members and typedefs for DQO") Reported-by: David Marchand Signed-off-by: Joshua Washington --- drivers/net/gve/base/gve_osdep.h | 48 ++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/drivers/net/gve/base/gve_osdep.h b/drivers/net/gve/base/gve_osdep.h index a3702f4b8c..a6eb52306f 100644 --- a/drivers/net/gve/base/gve_osdep.h +++ b/drivers/net/gve/base/gve_osdep.h @@ -29,22 +29,46 @@ #include #endif -typedef uint8_t u8; -typedef uint16_t u16; -typedef uint32_t u32; -typedef uint64_t u64; +#ifndef u8 +#define u8 uint8_t +#endif +#ifndef u16 +#define u16 uint16_t +#endif +#ifndef u32 +#define u32 uint32_t +#endif +#ifndef u64 +#define u64 uint64_t +#endif -typedef rte_be16_t __sum16; +#ifndef __sum16 +#define __sum16 rte_be16_t +#endif -typedef rte_be16_t __be16; -typedef rte_be32_t __be32; -typedef rte_be64_t __be64; +#ifndef __be16 +#define __be16 rte_be16_t +#endif +#ifndef __be32 +#define __be32 rte_be32_t +#endif +#ifndef __be64 +#define __be64 rte_be64_t +#endif -typedef rte_le16_t __le16; -typedef rte_le32_t __le32; -typedef rte_le64_t __le64; +#ifndef __le16 +#define __le16 rte_le16_t +#endif +#ifndef __le32 +#define __le32 rte_le32_t +#endif +#ifndef __le64 +#define __le64 rte_le64_t +#endif -typedef rte_iova_t dma_addr_t; +#ifndef dma_addr_t +#define dma_addr_t rte_iova_t +#endif #define ETH_MIN_MTU RTE_ETHER_MIN_MTU #define ETH_ALEN RTE_ETHER_ADDR_LEN -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:10.581961132 +0800 +++ 0118-net-gve-base-fix-build-with-Fedora-Rawhide.patch 2024-11-11 14:23:05.362192835 +0800 @@ -1 +1 @@ -From f0d9e787747dda0715654da9f0501f54fe105868 Mon Sep 17 00:00:00 2001 +From 6f5a555e28d8578ac2ce1cecf373d5f4c02fcd2a Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit f0d9e787747dda0715654da9f0501f54fe105868 ] @@ -17 +19,0 @@ -Cc: stable@dpdk.org @@ -26 +28 @@ -index c0ee0d567c..64181cebd6 100644 +index a3702f4b8c..a6eb52306f 100644