From patchwork Sun Sep 1 11:27:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gal Pressman X-Patchwork-Id: 13786400 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2083.outbound.protection.outlook.com [40.107.237.83]) (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 DB91414F9F1 for ; Sun, 1 Sep 2024 11:30:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725190240; cv=fail; b=Ornxww8eYG3vnfHMRA2AXmAZPQF7Ne0S+s+mc6GzhgzS7hCewSgaEdNq/0qCnAkilaAzW8JdL+G3NdkEAQPRgGf/0KqKw6Q3o7UR9UomNA7t3PizAJch90TODXJRAwJtBo7MP+bmTR57iE3ORb/z6XOUyfaHVFrWvrv9ZiC5DBQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725190240; c=relaxed/simple; bh=hVfLVWkTyLM5kx/E7K77KutBTD7djXA+PZpDvdGmmiY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=t0YCA90b17oZKXBcHPUpT4BoX4MyDte9pb9/eyv6XKZxrr6qJuU3ZwZNq67gOY9sa4M3qtbHGPxYX1ut2CO2rLy6nNn7xFAx8yZLCer6L8klmApX2HC8wDTdzYZ8ZjspAF+uxkABwm1JA1YrO5Mm8VGjCBwoTjrK9FyosX69484= 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=P+VMTD4Y; arc=fail smtp.client-ip=40.107.237.83 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="P+VMTD4Y" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tNaVrtUAn0nx93ltRiZq6wsHl/M1idMq9nNX+CeLPEiJc08kCUByefH7J1gh/55nnRqDIlHllmw3I2ODjXN0NQtze0CvJ+uuX3eBEqdSWhuueRT3s1IxcjV+LfRAreef5s0cjhUEUSDfL++kZJ8KxvdkGSdenvJvCRgZIl2aVJD/cHDEyqSQNQ5HCmfgaqEOuqkcTTJO6Ji7vcKUP7ur50/BZleMQlywXYBCvU3MEK6Jl2RBgOfb3YPKkh9N1NOuKVtUTf/oBlxbe2jiet2Tp5vjti9kFeRXGS0vpZGdD4NpWsM7hyG5l9lMXepipxrKLB7Vb42J7sAeAxGkwBjasw== 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=e9zUijLyYkc+qJen1w3r984Qwm3OGDy3ph+yW/wG/o4=; b=ElqqORiLvsBduP5og7amt70q4p6n3ljkMSOJYWAGIW+lMfwe7HCyTDfllv6EhJT2JP6rfsYQCm5d5GjCvOAddAqnHeGWXme3Fa/mv6I0diQD2bNA8Ooc9yMtxUooXPXwjBR6tFj2pRn4sQ6Y6/jko4Z2GRtgwSx/SpkI5FUci1KGuIYIheW28GK0RZ2V5Fazc5ZvxtlDMVtWJhuVmuOrL+E9ktEBsR0lAuscz9VW5JeWM4iFiH/W7pM5zbOcik4XMt6zJjyLI6HjxaX56LWVeLN1IszpNFeDy0oahGc9NAFFT6S/OMnNlC338tuMlUh/VMMUfg/yysps8J1gWfKPKA== 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=e9zUijLyYkc+qJen1w3r984Qwm3OGDy3ph+yW/wG/o4=; b=P+VMTD4YAyceQuzhBAoQnCYgFNIOa+ruyhdVOCq5CjBSOzE/e3mOE0G9JTVib9dehhCSVxa/Lp/1FU2nGPz3RzxQYbk1WF3X879ftBRgNBXcFloHWh64g1NmoJWjXwkPHdgj0qi8ZxmhfDX+sOYPPHDCntgoexZIa9dVGIG29zTbikmivGiB9degYMgafkY9Vwe9lIzNXqK2l6/QBIrOGIDutNrsXGwKtLotG6BJALvljin9iQbknSlIMxfw4tl0Xhq15qVW7oBqqHusIC0pmeeTab4EcqaqRx3G2ZbvIkWWNs0/V+sqxSJzXDoiEka7lGh5O7nfWK02++rXv9wXFA== Received: from PH7PR03CA0016.namprd03.prod.outlook.com (2603:10b6:510:339::13) by PH7PR12MB6763.namprd12.prod.outlook.com (2603:10b6:510:1ad::8) 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:30:34 +0000 Received: from CY4PEPF0000E9D0.namprd03.prod.outlook.com (2603:10b6:510:339:cafe::4f) by PH7PR03CA0016.outlook.office365.com (2603:10b6:510:339::13) 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:30:34 +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 CY4PEPF0000E9D0.mail.protection.outlook.com (10.167.241.135) 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:30:34 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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:30:20 -0700 Received: from rnnvmail201.nvidia.com (10.129.68.8) by rnnvmail204.nvidia.com (10.129.68.6) 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:30:19 -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:30:05 -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 v2 10/15] net: hns3: Remove setting of RX software timestamp Date: Sun, 1 Sep 2024 14:27:58 +0300 Message-ID: <20240901112803.212753-11-gal@nvidia.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240901112803.212753-1-gal@nvidia.com> References: <20240901112803.212753-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: CY4PEPF0000E9D0:EE_|PH7PR12MB6763:EE_ X-MS-Office365-Filtering-Correlation-Id: eb408972-dd19-4efa-7fbd-08dcca797e86 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|376014|7416014|82310400026; X-Microsoft-Antispam-Message-Info: WQrXRO2dW/b0+l5hFwBGRzk5dDXU7huBSqTCANhZMKnt11ntuJWVM1Yc1LeK2iHz+cYAhFnzTY8RnCTi31zLpHws5XYIQMd6BMquC4OrVX10+Q71tWIiS55wrxPLKxE2a/GoYM6jBXVkL7w/eT0Y67mOHQ9of6C0a5x4uHgnZQ8TJ1F1G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ydNt/xTG4xMaN1LgWRFSbyBPni5+FLZ+fPEO8WCS9lsNM4hFu65AL5j5uW8guLZVmYcZXY6ulDd5/7Mdm/dCrnvSbTBGVM2K0uO28fmdolJfErdmHFvIbNll/YPzEhbn8przvKLFEfpDQG4WtPAZ8TAzMWUqa7/ZeyvDDHrHs1WzS6vQOLqN0H30AgiCoZCbMWJAfh7hwCEH0V8x 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)(1800799024)(36860700013)(376014)(7416014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2024 11:30:34.1427 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb408972-dd19-4efa-7fbd-08dcca797e86 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: CY4PEPF0000E9D0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB6763 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 Reviewed-by: Jijie Shao --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c index 5fff8ed388f8..5505caea88e9 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_ptp.c @@ -389,16 +389,12 @@ int hclge_ptp_get_ts_info(struct hnae3_handle *handle, } 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; if (hdev->ptp->clock) info->phc_index = ptp_clock_index(hdev->ptp->clock); - else - info->phc_index = -1; info->tx_types = BIT(HWTSTAMP_TX_OFF) | BIT(HWTSTAMP_TX_ON);