From patchwork Wed Sep 4 07:49:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gal Pressman X-Patchwork-Id: 13789905 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2076.outbound.protection.outlook.com [40.107.94.76]) (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 E0B39148857 for ; Wed, 4 Sep 2024 07:50:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.76 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725436219; cv=fail; b=rF4m/m+iRSUl0/JBsAV7IgY/nEPCoxEe7WvfTS+gl7DXDeBIGrQh4QA3Ogzf91r6+6kEymmdMugxJrPpavN8T71acRo5M9/z/7q9HgorQfdri7t0blXIzTDa0QRbaopkeHVoASPo1vig0pdbzfhRO/p3HuFiKNjxaCPQMSGi60k= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725436219; c=relaxed/simple; bh=5e5imLt2wSWew57+phbECpCrw0lV060aU3f2g+jxYck=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WcvfDzWTrW9L19jKX/O0ge6H3qTvOs2Ux3n61Xs9ORfxPPNg8JXK5M/GlL/U/bky4T08ILuKUPH14S8A2A2PCJ7d2gxsEKoPASzesa2r9sj1pA8nkIjLXpD14c6AeTuDQbCNjOqzhkmZb22E93FzhweO1AMB4pH3x1uVu7LWhD8= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=Sqi0KhWQ; arc=fail smtp.client-ip=40.107.94.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="Sqi0KhWQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=j1nruzTx1PW+DSCRitdmjwOH61Gho4sF+i8nH/sICrSTNfL18hdRs+s1eCXnjkfXivefuf0eL63nwbuwwSpFLcF0oyhY2J75tq4niaybEJefKXYBWSVZVpTtechT2bQ6kAPykksxHdx9BAgacgwrQmyrb5vv8HXhIsZF49BDRexV49LYKp/LR6Z+HJ3E3e5CtvuBGbcRxNVZAQhCGCSZ0Ppa8BlHZuWzSSxGD6ASQ0ATmpdo5Me9IQ9EUKvg8VnYhG0U76tv6QYABAop5CJp7Xc7iK6v+Ukg+tFSexQFniOFuRBIPsPbVPObpIfubqN0oqoYKrfJzixNQxZwPf+cjg== 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=GnRXfQ1EIZ20qADpWdVHETvsN2BUTPfbK9vPsgInU0g=; b=QVUvb70XClpT3NYsE9rPoN/UZQ2gXauB8dWUuC02vSuEYCPxPcR/waay7W/zIRjEjtc8CyN9QqGhkK1paAvQ1Mcy0Up1Ofql0ChDW5vhLWwCDUqO8F2wJAPFUfuJx6vqYwfKZ3iIk0fQo6kH3NqxneubQa35UzH852q7pcYMB+ygPCmDPBcV+WNaL/1QlSWT20kqZ322uNcblhEZ5F0bhVhc8p9f2cX3immJ9Gnl9RlarEXJ45D3fAkN/4kubtGG6y00ohBeCaTx7T2FCLq6kEnZzd63jA1rdbz+T6LKNLqaWUP5CTlXY7csrMTAxrAg05qXWvFmF8qegJsgxuCY5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.232) smtp.rcpttodomain=davemloft.net 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=GnRXfQ1EIZ20qADpWdVHETvsN2BUTPfbK9vPsgInU0g=; b=Sqi0KhWQl0PRc9RvEj2DEU+tb0/Y6gb5JKCepnB9MYHvuwApfEBQr2fGIT/zW2RCB7N0xADDjF4SYiVCfaT5EokPejYIjkR5ItZMTA8pTB6/NZncWeqbQGA/Q41q2cxVPrO9/VyWZdZWL30ew7KP67jpHNoZ0P4N2KzW6VrPBXJxtqE+6vo4DXsCQjLIdjcclUyzBmwxYnWCAtgehJe0vSkvCkFwQynx4/Cl8NGiI+yaZdPZIPqSluC/qOBCzTeAx9xAn+YCvMfypWKiYWwYZDQRlrRWULX4W2/1JtJHbpv3VmaGFS1yNhqeXoTmaUTxZWeKDlLoexZHOVR6wAQQdQ== Received: from DM6PR17CA0024.namprd17.prod.outlook.com (2603:10b6:5:1b3::37) by CY8PR12MB7706.namprd12.prod.outlook.com (2603:10b6:930:85::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.25; Wed, 4 Sep 2024 07:50:14 +0000 Received: from DS1PEPF0001709C.namprd05.prod.outlook.com (2603:10b6:5:1b3:cafe::9e) by DM6PR17CA0024.outlook.office365.com (2603:10b6:5:1b3::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.26 via Frontend Transport; Wed, 4 Sep 2024 07:50:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.232) 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.118.232 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.232; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.232) by DS1PEPF0001709C.mail.protection.outlook.com (10.167.18.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Wed, 4 Sep 2024 07:50:13 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by mail.nvidia.com (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 4 Sep 2024 00:50:04 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 4 Sep 2024 00:50:04 -0700 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 4 Sep 2024 00:49:51 -0700 From: Gal Pressman To: "David S. Miller" , Jakub Kicinski CC: , Jay Vosburgh , Andy Gospodarek , Marc Kleine-Budde , Vincent Mailhol , Shyam Sundar S K , Sudarsana Kalluru , Manish Chopra , Michael Chan , Pavan Chebbi , Nicolas Ferre , Claudiu Beznea , Sunil Goutham , Potnuri Bharat Teja , "Christian Benvenuti" , Satish Kharat , "Claudiu Manoil" , Vladimir Oltean , Wei Fang , Shenwei Wang , Clark Wang , Dimitris Michailidis , "Yisen Zhuang" , Salil Mehta , "Jijie Shao" , Tony Nguyen , Przemek Kitszel , Marcin Wojtas , Russell King , "Geetha sowjanya" , Subbaraya Sundeep , hariprasad , Ido Schimmel , "Petr Machata" , Bryan Whitehead , , Horatiu Vultur , Lars Povlsen , Steen Hegelund , Daniel Machon , Alexandre Belloni , Shannon Nelson , Brett Creeley , Sergey Shtylyov , Yoshihiro Shimoda , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , "Edward Cree" , Martin Habets , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Siddharth Vadapalli , Roger Quadros , MD Danish Anwar , Linus Walleij , "Imre Kaloz" , Richard Cochran , "Willem de Bruijn" , Gal Pressman , Carolina Jubran , Rahul Rameshbabu Subject: [PATCH net-next 03/15] net: sparx5: Remove setting of RX software timestamp Date: Wed, 4 Sep 2024 10:49:10 +0300 Message-ID: <20240904074922.256275-4-gal@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240904074922.256275-1-gal@nvidia.com> References: <20240904074922.256275-1-gal@nvidia.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0001709C:EE_|CY8PR12MB7706:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f167a64-7723-40ae-a1b6-08dcccb6359e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|7416014|1800799024|36860700013; X-Microsoft-Antispam-Message-Info: G4/RSJWfIzD+Qig5ghf6YZU0XtThGJnuyUDxUFbf+QJAxOnNw2Us2mQk9zcK8K5L4KcD3Y+8wGQ3Bk3S91yZ7tB5aX/1zs/nLAzXePd1K+OKOeip5qshtt+KTt8DT2ZL+1PoQ250z07kTXoMR5lP17kOCdfPvW0Vk6ihdMdH0YbEBVJbr2i1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vds/MQQUOWCgo9Qr4Y64dBORywq62OnBjIHzurWA6lZ4vtZfw2946wtARUG7Y4Thg/qObeQQCHROpXPLao0NSUaBCYtdrHxsBb2Bcpa5QMiy0ia3ohbdPnV6S/HnSJAFNtNDSemDF6AJwxlywJQFFoJMiDueZ4ufO3mXShc1cAEqllRU+VStNm0vPQZkP4RLmv94HqzJZA25SODYails X-Forefront-Antispam-Report: CIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230040)(376014)(82310400026)(7416014)(1800799024)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2024 07:50:13.4376 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f167a64-7723-40ae-a1b6-08dcccb6359e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.232];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DS1PEPF0001709C.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7706 X-Patchwork-Delegate: kuba@kernel.org The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers. Reviewed-by: Carolina Jubran Reviewed-by: Rahul Rameshbabu Signed-off-by: Gal Pressman --- .../net/ethernet/microchip/sparx5/sparx5_ethtool.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c b/drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c index 4f800c1a435d..d898a7238b48 100644 --- a/drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c @@ -1194,16 +1194,13 @@ static int sparx5_get_ts_info(struct net_device *dev, phc = &sparx5->phc[SPARX5_PHC_PORT]; - info->phc_index = phc->clock ? ptp_clock_index(phc->clock) : -1; - if (info->phc_index == -1) { - info->so_timestamping |= SOF_TIMESTAMPING_TX_SOFTWARE | - SOF_TIMESTAMPING_RX_SOFTWARE | - SOF_TIMESTAMPING_SOFTWARE; + if (phc->clock) { + info->phc_index = ptp_clock_index(phc->clock); + } else { + info->so_timestamping |= SOF_TIMESTAMPING_TX_SOFTWARE; return 0; } info->so_timestamping |= SOF_TIMESTAMPING_TX_SOFTWARE | - SOF_TIMESTAMPING_RX_SOFTWARE | - SOF_TIMESTAMPING_SOFTWARE | SOF_TIMESTAMPING_TX_HARDWARE | SOF_TIMESTAMPING_RX_HARDWARE | SOF_TIMESTAMPING_RAW_HARDWARE;