From patchwork Sun Sep 1 11:27:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gal Pressman X-Patchwork-Id: 13786390 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2043.outbound.protection.outlook.com [40.107.237.43]) (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 85CAB61FEB for ; Sun, 1 Sep 2024 11:28:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725190092; cv=fail; b=IyLTTcKD9jGNR2qNnnddVgXLXM6ThRbLSMHsuzWrrooRIQ9sVoGvgKywALSipVzjsfpk3p3NWyEYPSuL8tpqQkVb/tef1yq9ivE1pHNVkDgdHCVhTtWAtWzUT/Se6C9/m2nddRVz9Zr+4t6BORhQzgsX0YP8N08/W8Lc8PaNtII= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725190092; c=relaxed/simple; bh=Ip8Qjr8YXo3PH2lOZGEVRtRHN73cWXwhsk5Z/I088E8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=dbWB4l4efewMHJtlCIEWjZVcta3F4jjR9WP/vHkHAs+NFKC7IJFjSzaYpQIYEuLC1KupLfozLDYqZqtxlsw9VjIMjMFCUQ2DyZRzmnyc0W7U7VR0LEGYeg7ikYGKYSIx6EcGGBh2mLfqVUU7EfZzjqHuNQVsUfrC1S71os9WdQw= 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=XVWAgHFt; arc=fail smtp.client-ip=40.107.237.43 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="XVWAgHFt" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=oYZfJdGhiEpib1K2OorJkkYgYThYU/ODtpIXfN1DNeipkBCcvB6GUpCrMWJD38mmDHhC7Er8UyHfTjQjWIlu2eEYKVF+gHVjoRd5utJG80+Y2DiJqh7fnmyi4yQU9GQKtczdveFUEZY1O3Lvqd0AGqNp3ONwkgnLwlsI8HsGqt2UrHJf9EojbAdHv/kazEQWrTMI0vYHywy3+b269CCBJ4lV0A2BA9dFJWsUQj5eaPmvhRK85ZBaRs5uqlRFts2NSLF24E/JiPUKBsjqm9s/4LPXwT6VDvGvayNcIzvmnQ2aD4q980oN2SJr9k4NneVhnFeHNlWEBba5Q++hIOui7Q== 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=fqQ2j4gWvIzDumozPvbZfrsKlV+cdpPncgcgNuHwcOE=; b=Pk6t2Ot2lUuspBQwziCl0pbLF7l39JjEvwCQIDQwm7lLbCiAzevIhuBK/jhXXNFpTxXBBaWWxHjPKfoFTNs+su9Q1fwoCg20I+/mdnuSkfmUUDS+h6QyQvYmrC5JC1UFFB4lfEDftqQjn0zxpqeHsj7Msni9M25uYPAwi3RNoV0ujwF/Wq2s7PbYqcXF7WAgKNi6ZJeBrY5ZKcFevbIz8yN1QWX3ITYIFUBpNKuD2Al3XCE4Zl48vJBlzi8iDzO2TflPMQ0P11lQb5VZWHU8DdoSLziBOexoC10wi82UKC8M/kPKrELnTLSoca8BqtMewXr2+5RZ0jOVcSCcVRYJwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=fqQ2j4gWvIzDumozPvbZfrsKlV+cdpPncgcgNuHwcOE=; b=XVWAgHFtTNLWIb8iBJ9VsqeS2gQFEhQNQkOCbSaoJ/GRMUTtoYZx8DfZYl2PJS7uvosQw4zZXQ75kxqpXnLgcl+G47WeUStIE5g604EOgGX4pxTQFAOOPxXtVW4MoA+nLjZI2R4yt53SGIx8kuHBiOxBQnLFUr9b1mo1PO7Yd0++GNgxzZpmmE1ynZFOiNApUe6hANXvJnThoDqgQTM9Ch/1Q8QFB05yASfsev9RGgpaiRtDw7y+toypbTj/y1gbGW9+EeWyUmOftHwk7IuXPNPwWlWhxXT6Tqa+6Y/rH/uUAkV/IJmuZmjqx/I0hUVoUVfzVjW1Biz0l6OZxDNRmg== Received: from DS7PR07CA0012.namprd07.prod.outlook.com (2603:10b6:5:3af::20) by DS0PR12MB8342.namprd12.prod.outlook.com (2603:10b6:8:f9::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23; Sun, 1 Sep 2024 11:28:04 +0000 Received: from CY4PEPF0000E9D3.namprd03.prod.outlook.com (2603:10b6:5:3af:cafe::c) by DS7PR07CA0012.outlook.office365.com (2603:10b6:5:3af::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.23 via Frontend Transport; Sun, 1 Sep 2024 11:28:04 +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 CY4PEPF0000E9D3.mail.protection.outlook.com (10.167.241.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Sun, 1 Sep 2024 11:28:03 +0000 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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; Sun, 1 Sep 2024 04:27:56 -0700 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 1 Sep 2024 04:27:55 -0700 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.8) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Sun, 1 Sep 2024 04:27:42 -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 Subject: [PATCH net-next v2 00/15] RX software timestamp for all Date: Sun, 1 Sep 2024 14:27:48 +0300 Message-ID: <20240901112803.212753-1-gal@nvidia.com> X-Mailer: git-send-email 2.40.1 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: CY4PEPF0000E9D3:EE_|DS0PR12MB8342:EE_ X-MS-Office365-Filtering-Correlation-Id: f4dcfc41-9533-446f-f770-08dcca7924cf X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|7416014|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?jdLLLmY4nzhZoAlQX9Z5V4re9RBQa30?= =?utf-8?q?sBxUdkUK8OlSJ0ZNAxk0/h6Od5/XC1L6FTiZqy6FaygPPBOa/yQ8pLAt2hm+W0C3P?= =?utf-8?q?zXeahYUpbSQ+9dNQxWLoIUYIMNQRxPKKc4DKmE3qTQP852DW/jxWOa6hFQDAAKEIL?= =?utf-8?q?3qWcGv/Ujhr+gQjko4iu7qSZDhWYT2MfFHVjVC/55BADVSOuNbVgSzcc+fPemtcBB?= =?ut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f-8?q?WU0xqW7QSn4swc71liJK72pTayFmvBXcNzOYgsXFdde8FQfUEFfUgYnXF1/HzkX9p?= =?utf-8?q?75QYJgTipuxP7pdatAV8pz2JOGdRvYWI5TWGMz4mAYd7c8RBkBc6V3h0R0ryAspRF?= =?utf-8?q?SuXHZxTp6OB+9Iw930DEB44CjM1Kg0n2/Xi1XGiqCKFfrGH2Op/rK7sY3fMC4mC1O?= =?utf-8?q?QAkmO7E75Z2U6hO5IjDEvqdvuSfEi6FocA05mC2mCx3GBD6RUNlnpPlPyhqLdInhx?= =?utf-8?q?rLQ3rM5AV1nxfjoUsDgVWqqYQ+bV5E24Gw6SoTyB/Ru2d6ELFHK2hjaLG1gQkxDKt?= =?utf-8?q?Ie4qVgcNh3V?= 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:(13230040)(36860700013)(7416014)(376014)(82310400026)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2024 11:28:03.6449 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4dcfc41-9533-446f-f770-08dcca7924cf 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: CY4PEPF0000E9D3.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8342 X-Patchwork-Delegate: kuba@kernel.org All devices support SOF_TIMESTAMPING_RX_SOFTWARE by virtue of net_timestamp_check() being called in the device independent code. Following Willem's suggestion [1], make it so drivers do not have to handle SOF_TIMESTAMPING_RX_SOFTWARE and SOF_TIMESTAMPING_SOFTWARE, nor setting of the PHC index to -1. All drivers will now report RX software timestamp as supported. The series is limited to 15 patches, I will submit other drivers in subsequent submissions. [1] https://lore.kernel.org/netdev/661550e348224_23a2b2294f7@willemb.c.googlers.com.notmuch/ Changelog - v1->v2: https://lore.kernel.org/netdev/20240829144253.122215-1-gal@nvidia.com/ * Split series to patch per driver Thanks, Gal Gal Pressman (15): ethtool: RX software timestamp for all can: dev: Remove setting of RX software timestamp can: peak_canfd: Remove setting of RX software timestamp can: peak_usb: Remove setting of RX software timestamp tsnep: Remove setting of RX software timestamp ionic: Remove setting of RX software timestamp ravb: Remove setting of RX software timestamp net: renesas: rswitch: Remove setting of RX software timestamp net: ethernet: rtsn: Remove setting of RX software timestamp net: hns3: Remove setting of RX software timestamp net: fec: Remove setting of RX software timestamp net: enetc: Remove setting of RX software timestamp gianfar: Remove setting of RX software timestamp octeontx2-pf: Remove setting of RX software timestamp net: mvpp2: Remove setting of RX software timestamp drivers/net/can/dev/dev.c | 3 --- drivers/net/can/peak_canfd/peak_canfd.c | 3 --- drivers/net/can/usb/peak_usb/pcan_usb_core.c | 3 --- drivers/net/ethernet/engleder/tsnep_ethtool.c | 4 ---- .../ethernet/freescale/enetc/enetc_ethtool.c | 10 ++-------- drivers/net/ethernet/freescale/fec_main.c | 4 ---- .../net/ethernet/freescale/gianfar_ethtool.c | 10 ++-------- .../hisilicon/hns3/hns3pf/hclge_ptp.c | 4 ---- .../net/ethernet/marvell/mvpp2/mvpp2_main.c | 2 -- .../marvell/octeontx2/nic/otx2_ethtool.c | 2 -- .../ethernet/pensando/ionic/ionic_ethtool.c | 2 -- drivers/net/ethernet/renesas/ravb_main.c | 4 ++-- drivers/net/ethernet/renesas/rswitch.c | 2 -- drivers/net/ethernet/renesas/rtsn.c | 2 -- net/ethtool/common.c | 19 ++++++++++--------- 15 files changed, 16 insertions(+), 58 deletions(-)