From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from SA9PR02CU001.outbound.protection.outlook.com (mail-southcentralusazon11013049.outbound.protection.outlook.com [40.93.196.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75488495515; Thu, 23 Jul 2026 12:39:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.196.49 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784810378; cv=fail; b=V4ha9YG+Xxz9Q7Xd6T5Aze7WEW4DLoK+ey2DxgESr3vLr1NVxdNAxRjnTAoSzcEtgFiNDeIdDTvfZiz33fPwErEWtAVwe6NaJrdBntss2IRspmPEwNJW3vqG6Uw9vpPP8vja7m8bbsPHjkmF7BXoBd4tZ2h34M8SBQQzQ+H/8+M= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784810378; c=relaxed/simple; bh=hvtCyXwKAUjo3G8xxB2TQq62cZaiGVgLl0xjYiO5KRs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Yl3oeZ824b9UPylo3/F1lrrc+I3mnnuXXFguiRS5hgm0QJ+cv2RyH1QGzG1MbcN0p/X26PRymoreNV3s7Cj+5PIK70eeDjR6SGiW9uaa2A6eSNsciwfA8KbI1uFUn4SjeDWUsmfcnloOL/D0wvWQgtFbQ9nB0y2QCCVsW31k2Uo= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=DI7Vd00z; arc=fail smtp.client-ip=40.93.196.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="DI7Vd00z" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=LMQ0MZzYQod30PUe0F+UKg7vlmdUW7s19sx32JU/XNXXHQTS9qEBMuPgK7WwaiOY/aCZ+NOzv43wbrJgp8c5Qmc8azD7LexKyKNIxxiICj4ywSqBEtBJ1BMIPlh0Wrta+wvH7x0kxTN5VD8kXQ+aztItzFaGTmEPMpgr8ZSY/S40rCqbtyw/rsn0sPGc/IqeKTebcJ3dr8c8YieT9GMKUEKMqGcZ06ybChbcoo6yZZakFmTZDyAXCN/qyQg7yT3Y8AzjXD3rhNEjCWERxY1nL/lnH81To6xyOQ5iq77nOu+WwhfEwSuGLk6TwyhyRT1/C5YAp1eBuE2ioYzFwWTCpA== 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=nU3YM/BXNkpa6X8NBlT3MYByrBCoqp2orspy7P608Qk=; b=th6rIBmTYsSakhJ4D28AOQMQ1VjZMVbs+6KMfQy+RMnZR8YvGSmyk7Iq20mWKBClnJOZyfRUNfAUmSO7EWADooYNHfT0dw7VmLruGO+cYimhimLG5ZzpBl4MZGln/2fmMkOY7FU+KEkm64kvam67ZkYmnNy7wUGzVSl5GxLwx0xcRpd9LjNRZYQv0j0KSFRD96VV7l141BiDNOV1HRrJ70Z4QtLyQ1Fvx4m+xfHngF11I/hHA1diLODziCnnkDMwzaxcfaasXBwwW1IHX3CTI4S4KFeUXlygMzKTruukXonR18FqsZo08a/BrYZ76dEGdvrRm7n6D/6AxXh7cjrYfA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lunn.ch smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nU3YM/BXNkpa6X8NBlT3MYByrBCoqp2orspy7P608Qk=; b=DI7Vd00zkpzvFknjB12frCF4za6JY47sPEWMm7O9PLuT/NmEWUIFmMXcuf4FR/CTUKevlgPX9oIXtoIWePvaaVL2S5qV44CDPZp9uM5SIhd3QvIxpM4ttkZJbbakAutVOQL3QpJnc2ttuvxxx4kEEML6xX4ETE2sJKA06vjw/q8= Received: from DS7P220CA0013.NAMP220.PROD.OUTLOOK.COM (2603:10b6:8:223::7) by MW4PR12MB7484.namprd12.prod.outlook.com (2603:10b6:303:212::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.11; Thu, 23 Jul 2026 12:39:30 +0000 Received: from CY4PEPF0000EE3B.namprd03.prod.outlook.com (2603:10b6:8:223:cafe::7e) by DS7P220CA0013.outlook.office365.com (2603:10b6:8:223::7) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.11 via Frontend Transport; Thu, 23 Jul 2026 12:39:29 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=satlexmb07.amd.com; pr=C Received: from satlexmb07.amd.com (165.204.84.17) by CY4PEPF0000EE3B.mail.protection.outlook.com (10.167.242.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.270.5 via Frontend Transport; Thu, 23 Jul 2026 12:39:29 +0000 Received: from satlexmb10.amd.com (10.181.42.219) by satlexmb07.amd.com (10.181.42.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 23 Jul 2026 07:39:28 -0500 Received: from satlexmb08.amd.com (10.181.42.217) by satlexmb10.amd.com (10.181.42.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.41; Thu, 23 Jul 2026 07:39:27 -0500 Received: from xhdsuragupt40.xilinx.com (10.180.168.240) by satlexmb08.amd.com (10.181.42.217) with Microsoft SMTP Server id 15.2.2562.41 via Frontend Transport; Thu, 23 Jul 2026 07:39:20 -0500 From: Suraj Gupta To: Radhey Shyam Pandey , Andrew Lunn , "David S . Miller" , "Eric Dumazet" , Jakub Kicinski , Paolo Abeni , Michal Simek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Greg Kroah-Hartman , "Rafael J . Wysocki" , Danilo Krummrich , Jonathan Corbet , Shuah Khan , Michael Turquette , Stephen Boyd , Brian Masney , Russell King CC: Shyam Pandey , , , , , , , , Subject: [PATCH net-next 5/7] net: xilinx: axienet: Make axienet_rmon_ranges non-static for reuse Date: Thu, 23 Jul 2026 18:08:36 +0530 Message-ID: <20260723123838.125145-6-suraj.gupta2@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260723123838.125145-1-suraj.gupta2@amd.com> References: <20260723123838.125145-1-suraj.gupta2@amd.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EE3B:EE_|MW4PR12MB7484:EE_ X-MS-Office365-Filtering-Correlation-Id: 315555d5-2bab-43ed-e35d-08dee8b77041 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|1800799024|82310400026|36860700016|376014|7416014|56012099006|10067099003|921020|22082099003|18002099003|11063799006; X-Microsoft-Antispam-Message-Info: 7So+C9EbPwW+BvjDlsJknY92/q1i0BepgFhmNLRDZOup5T2Ym3b/WtJ60OCCCRT2H7fzpY6wDN5m5vXyctb/wsfkLqXGmQCh+/DXlm997n6GQC3BWFXeaMumM8ExUU/ak0RPF9rblcKujV9RPTF7BiAR3wIsHAPONA6XdBnxRDPC5pnLam/jSs6B0Gz42ro5xOshyjCidol9lPED7dFrvYFGjp3B7LBOMB6HMoH+gl3t8u82Wa6juoInpdFwSUw0J+E9d2IauLSMM8U09Pr7tdnP84CvfaucCxkqnImH8PF4T0u2DU7HzhzsqCIXXsslKl2d3jd4O65e1ZG8N8Ls2fAc8TuO/JlivLsy2W3RhwAjb01g3XWnkZhZNtafGH7KFlj5sRfKhP91zgpKLHEzbPpp7tpmraQskX5zZ5zQmEJdVsnfKXggdi+GsaOT/ysQBSYj3FKD4vgTvJndyr406TRcMxsCxhiMfv+KASVXDfsXO27GhtoZwo0pvyppqJaSDh9mkQ6ZUdbeKCMvp5eLwfwY9tkA1WF4DYOmLc1Ey8gvzQkMXSO+qD+5+kTmDqsE4F/qZ96+7MN/xaNSkXA2hByNyxDdYDfbV3UQTS2Jefk21pnDJJAoT+NGPtl4HWoIp1mUPlvKOIwwH+2h6Xd/6Vwoa+SH6w3VAqO+AdZtKhimRHcxf5gi8RSAGAraApihzi530PdfeSoXAwZtc60JOAZ7QvPdNHjS7vMuy3Rq4Myn+g4rFtr+/XNvb0MNl6jH X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:satlexmb07.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(1800799024)(82310400026)(36860700016)(376014)(7416014)(56012099006)(10067099003)(921020)(22082099003)(18002099003)(11063799006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZbCFsvue+5nztQN99Sfy+gjKT+QOLQcJ8YQqFi4v6lk8phMgc5fnFojzun9orIeeh/7Q8BGF4dH0UvKaf0VpU1uyj9z88jCdDV3rok0GzY9zGyF+03+SahDvNhG0TbUdFXkg4EAzL/N43pLX7sNtJ9STjkOoKs8agUYcTWjDeI4ZKKKCb8mjx8i9HAv5sJDD7ES4kRsrT1lJwuRwptgctKzsdORSFxRagxVPO053C3gLgK3mbp46MopJLVX/W0/U7/lKmIqRoJZFAXEXEA/IF/An7NR1ktgS9QvyW6qTEWZlbdALOIVlO67w6JnbPtGjae/gpFY0kTfO0dDFoXObHpjSCZX4rJJhl1aGFTAWQBD+VLLtmhx/62J5Z1ktPzh1GudP4tEoQzEjVioSw2rvCtliWMtDLNM9LG4XtV1GMFl3IzxAaTn94thJPlosa6Th X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2026 12:39:29.2285 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 315555d5-2bab-43ed-e35d-08dee8b77041 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[satlexmb07.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EE3B.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7484 The RMON histogram range table axienet_rmon_ranges[] is MAC-agnostic. Make it non-static and declare it in the shared xilinx_axienet.h so the upcoming XXV RMON callback can reuse the same table instead of duplicating it. Include for the range element type. No functional change intended. Signed-off-by: Suraj Gupta --- drivers/net/ethernet/xilinx/xilinx_axienet.h | 4 ++++ drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet.h b/drivers/net/ethernet/xilinx/xilinx_axienet.h index 295a1b835165..a1d15b4797ce 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet.h +++ b/drivers/net/ethernet/xilinx/xilinx_axienet.h @@ -10,6 +10,7 @@ #define XILINX_AXIENET_H #include +#include #include #include #include @@ -802,4 +803,7 @@ static inline void axienet_dma_out_addr(struct axienet_local *lp, off_t reg, int axienet_mdio_setup(struct axienet_local *lp); void axienet_mdio_teardown(struct axienet_local *lp); +/* RMON histogram ranges shared by all MAC types */ +extern const struct ethtool_rmon_hist_range axienet_rmon_ranges[]; + #endif /* XILINX_AXI_ENET_H */ diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c index 5bffa5b9d0b4..19fe2fd81f3a 100644 --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c @@ -2498,7 +2498,7 @@ axienet_ethtool_get_eth_ctrl_stats(struct net_device *dev, } while (read_seqcount_retry(&lp->hw_stats_seqcount, start)); } -static const struct ethtool_rmon_hist_range axienet_rmon_ranges[] = { +const struct ethtool_rmon_hist_range axienet_rmon_ranges[] = { { 64, 64 }, { 65, 127 }, { 128, 255 }, -- 2.25.1