From patchwork Wed Sep 4 07:49:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gal Pressman X-Patchwork-Id: 13789919 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2043.outbound.protection.outlook.com [40.107.95.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 C836F148314 for ; Wed, 4 Sep 2024 07:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.95.43 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725436366; cv=fail; b=mnvxreQIGCw+QtuMBHjAThJtMsCDaFL+3MBsNL2vp+c7AwQU/hFb2WUDh0irPKRcQnHH2o+QZSGTjIR+TwwvAutLUDwSsN0oQ5SX0sFt9vVwgt8u+dR8ebq9wQAr1lBRGxg7ZnDL9STFwWxUvHqOBWqi65u5rS4/okbrNgP+vQk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725436366; c=relaxed/simple; bh=dKF8+bMS2Y4KTDncQDJhaq9wrW97n0aQI0UDSw/I8QA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NwY1yO8pLYULOzIP4E1eh67IyQpm/u0dC24UxXEohHU7klvFMpNwqrOjwWYXPNxl8/9L+8+YPxE7PwSdi8dMU2J4iaq8OpHpCeYZ/PZBCE+CEkTHSNM3phyU/tt2AsunRz2J4dVHvzPu+mGXe96YJza3gcI9+KibNv9Str72Ydc= 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=SSEkAE4S; arc=fail smtp.client-ip=40.107.95.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="SSEkAE4S" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=v8uVInOQdHIixEnHYd+vNCLYTvm3AvnihQD9njjmZRsoGx6fW7m8M0AiSamov+n7z3Lb3Tqcxn1lYM4RjsWyZGbhVknV9YU3046hnbDGi5DzQ3DFGMrIrIPBXPO00TZlLOzD0Ks67R2gxzIEYUJBv9p0D/Y8Mj5gOTvqGmyv1AZ8Jc2fFy5T9jIWBsY/Mp4U1VjowUlpwPI4spIlCmGSG3r3RPgsXpQKaMh8CRX33GJdQPcsGt12tzaD7SdpVQNHHvFFqp2XFJwbhpx2xW+9uYZbJ8hqUcKCGZQFGNzhcAqB7flj5/w5HMtebTuyEbGPdZE51r9ZoGnphjayCXB2VQ== 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=29piGvi5YicHx0o3p2Mp3L4TK51exkLYjC8m4bkXkhY=; b=OLMyRF9W/91boy/Azm5mCzJggV7IM3sfgX+xXLJh6HDX0u7j7EoQ4/S3KWSSP9AVhgZw0dCop5OaHdfOyh68bN+PNuLBycX/lBNNxYraWgWRnoGQtZGZ3HDWO2fd9CwPyVUmmDQGpTXNCajhzvy2SnzUsxBDpletLki2q/Hn51r5KVgnhisDPvZi39a+j9BBFBJSQJclK8L3gmEKrukJT2DAzOnsMCMnCF8L7Bt+TNrEJaoddLf2Rb+y3jnJyZl/FkZULyCPpmO31FtBqcYJ7h03MKyhi174VC7nFdPfUZVKDKPddk0+MJMCNDd/rQFAIYlnLhnWv3irKPaxc8afvg== 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=29piGvi5YicHx0o3p2Mp3L4TK51exkLYjC8m4bkXkhY=; b=SSEkAE4S5jyX6Y73QyEYcAI7Z2fVghFJ64WsDgpOqPy6wJ1QPzdggevyQMO0B8anYg+brJkBcH+DmkJFKFTo9ocoYxMF9G50VKW+asJWP9uLkLnnH8DwfuAmwfSE57vyeILWhJIgjHNaCkhI/exmJvcNpwwqUf/VSnzN0AZK04XY9oxHlfx7gQfIY2Ptd8aFW2Mlzz1OFBuhCCYNZMF91T8rxxm+tOYGEb8mzZXdm9JCpBWMXy04wvPwy29+BB3cIQHHToVwHC2tkfX/kQCX+UX4U1lU71VFOhFYz04qnFRYyUP9XioP06aIY8PcEV/5pNu3TpylzBXDKNPfWOsURg== Received: from DM6PR02CA0107.namprd02.prod.outlook.com (2603:10b6:5:1f4::48) by LV8PR12MB9135.namprd12.prod.outlook.com (2603:10b6:408:18c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.24; Wed, 4 Sep 2024 07:52:41 +0000 Received: from DS1PEPF00017099.namprd05.prod.outlook.com (2603:10b6:5:1f4:cafe::59) by DM6PR02CA0107.outlook.office365.com (2603:10b6:5:1f4::48) 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:52:40 +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 DS1PEPF00017099.mail.protection.outlook.com (10.167.18.103) 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:52:40 +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:52:30 -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:52:29 -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:52:16 -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 14/15] cxgb4: Remove setting of RX software timestamp Date: Wed, 4 Sep 2024 10:49:21 +0300 Message-ID: <20240904074922.256275-15-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: DS1PEPF00017099:EE_|LV8PR12MB9135:EE_ X-MS-Office365-Filtering-Correlation-Id: 135a8232-c4ba-43ea-0cd7-08dcccb68d12 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|1800799024|376014|7416014|82310400026; X-Microsoft-Antispam-Message-Info: +y8r4bsRqXPbVtTAp79BGGiB7z6yR9gQYgaZdsaEO/n1RWKNEtZ73w/4kMK26dprvelL+XPbYRMhAWh4nNObqfwkDTParc/CCkbdxaKzdGnf3iaCk9MVkdyfUCXxc4I2ruKE9Q31iVDSjArOWwO27oyzPHsjYp7JDKjR+MC7uKKEEPOsD0bTkHNOS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FJeY207d+HRg0YvitIhjTPF/8CMaaqCjIICggmPY1uYoZ1ChxFji86YadGC0VoAujARMkn/fY/FueXFEM11Iq/NzGEEALHKPuJf0XsdANZW9zikCq0myOPJzM8/280i4stI9eg91HrQrgVLWe65RV+YIPQliZ3srk66RfCEkqwVhI+Uqd3MzqnV5+tFhJds+KeNUwE0A9VDjxpmjm48mS 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)(36860700013)(1800799024)(376014)(7416014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2024 07:52:40.1402 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 135a8232-c4ba-43ea-0cd7-08dcccb68d12 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: DS1PEPF00017099.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9135 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: Potnuri Bharat Teja --- drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c index 3d091947ae00..7f3f5afa864f 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c @@ -1556,12 +1556,9 @@ static int get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *ts struct adapter *adapter = pi->adapter; ts_info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE | - SOF_TIMESTAMPING_RX_SOFTWARE | - SOF_TIMESTAMPING_SOFTWARE; - - ts_info->so_timestamping |= SOF_TIMESTAMPING_RX_HARDWARE | - SOF_TIMESTAMPING_TX_HARDWARE | - SOF_TIMESTAMPING_RAW_HARDWARE; + SOF_TIMESTAMPING_RX_HARDWARE | + SOF_TIMESTAMPING_TX_HARDWARE | + SOF_TIMESTAMPING_RAW_HARDWARE; ts_info->tx_types = (1 << HWTSTAMP_TX_OFF) | (1 << HWTSTAMP_TX_ON); @@ -1575,8 +1572,6 @@ static int get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *ts if (adapter->ptp_clock) ts_info->phc_index = ptp_clock_index(adapter->ptp_clock); - else - ts_info->phc_index = -1; return 0; }