From patchwork Wed Sep 4 07:49:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gal Pressman X-Patchwork-Id: 13789916 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2052.outbound.protection.outlook.com [40.107.243.52]) (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 9383E155A4F for ; Wed, 4 Sep 2024 07:52:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.243.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725436326; cv=fail; b=kqkd1Btn00HetWOBPJpEo97nWv4S3xj7ZQKPcYVuqHd1KgbjGxVS3/SYKSb4znJgzvD/o7YfNUkJYnM7rOdhZ2tgHvolLDwfIxj2HYTDjb9G1UbvaYjOiw6bvFdbk8cINcybcHktFf0dvUeEdUxSquqbI3uJMsSZIE24fHt6ejc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725436326; c=relaxed/simple; bh=VuNM2RokQvzGLvXBDsL/w670+Rwb8iKOzmSHJimHQmU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HqXgd3utc7hFTFjcoZHc2Mgarn8PlN+vs6wVHjwdxuhKppzDkt5oP5H4qOsKMHm7IXtnlTaJmLWTy4yAergDjXtMxXGLeRu25f4vBjBuHgRDsCUc9rCTa4xFXoSxBGny8pD9wN1VhnftbqmjTRVwqQmIFLtLwcr/m5JKwQHJrzE= 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=lzlUIZXQ; arc=fail smtp.client-ip=40.107.243.52 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="lzlUIZXQ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SN+/iSNVcGJbtuWgAB24kefJ5D4MfXpXq5HB8FnLzleX2Gb2yBIVsk6qOsprmzXWkozPi84Y7vGc/Xz4O9ycyg50f2e/ErO08vQPGGzixiB6bxL3fkpFeWbqV6rZziMWuLwp+rRJ+Gielmi+13RLOfQ5/0XZD7nVmzPX2d0WFWABW8iLv4BSQNxT4M7VxNwkpbbF/qkrE198fYzAApkA9ciW7bbk9Yulu0WtZ6lmis8WsbELSiC8o9cqS5vkt5dOf7MP7iODuSkNETMyRVX/C0tQPWp4KVe9e/Z/qNCD95qbkH4R5CBMnchRwOS4qFcvHG1SDt/9/MraxLgqTUmhWw== 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=0bgGOZq/53yGzqCvn3p8pXH0Sve5eUIfmPF9/ku3Cpw=; b=krsn4hnY2j2PsMNy+Cs81CEF9RqsHEkALRP+NssWxkiPRSMK11wJizZ1Aoblx2wnrqLKnh3Xj+Fdos9DSroXkSyv0o96xpROjFi7sIKFOiPwhsBcL8E7VPyLwrdTNUKXH69lbtF462KEM0MZohFQ6WmS0AUdpG5aJDbBPYRjNRapfPz6N/rs1E2exJHTg8AMqEPvh6YCKd81AHngAK2LHcQwVVKa44AkK5O3rfWxZMsDWJqAe0gVC212S+J0IJCSJyoXSjFjfGu0dQbY5X9uX5c5NZnfe5mv/bmVetzMnxSwYe3/UbV3l+fkQvShdMTzCxgfntf8iOjw7spLVOVcJg== 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=0bgGOZq/53yGzqCvn3p8pXH0Sve5eUIfmPF9/ku3Cpw=; b=lzlUIZXQIQPC6VD2EXju1yZES3gZnlAtB+PrQ+eHUBIrBkthUFMbj+6IXR7KJSevwEMVmw8elrh3PqCd9BxvNr0P0tk/GtOfAXSqTGZb1IEPDE/22KqC3Yw7r7ifk2Lo4xRK+fCdPiCnA8zMiD2PKx1DupX6CP6lFVNzj6mwZdfNb3Fu9/dOTqGjMo8qaTFcBSz2O80qNIC5dZH8ybvITisInJqrMWQ0QjhEOMHFOBewmEQ61gQWkCXSklUblFBBfGHNeZviW1bPT7wrOYssxsR492guABSnUoB/9oEMCF0256jSntXpdGS7b0i2VpYrhBsZzP4uP4pkYfzfYVG6Lg== Received: from DS7PR07CA0011.namprd07.prod.outlook.com (2603:10b6:5:3af::22) by SJ0PR12MB5676.namprd12.prod.outlook.com (2603:10b6:a03:42e::8) 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:52:00 +0000 Received: from DS1PEPF0001709B.namprd05.prod.outlook.com (2603:10b6:5:3af:cafe::4f) by DS7PR07CA0011.outlook.office365.com (2603:10b6:5:3af::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.27 via Frontend Transport; Wed, 4 Sep 2024 07:51:59 +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 DS1PEPF0001709B.mail.protection.outlook.com (10.167.18.105) 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:51:59 +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:51:50 -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:51:49 -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:51:37 -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 11/15] igb: Remove setting of RX software timestamp Date: Wed, 4 Sep 2024 10:49:18 +0300 Message-ID: <20240904074922.256275-12-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: DS1PEPF0001709B:EE_|SJ0PR12MB5676:EE_ X-MS-Office365-Filtering-Correlation-Id: f08ba1c8-2a0d-4995-f5fc-08dcccb674ff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|7416014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: txb6h4hhFSIqCuJEI7Pc+8RUozo+E52rI//Cq5zeeAInPPI1iRsJEuA+g3EWJDgHV9ALHt//0UN4zQbZZudBbo8yzl/3xrjQfR5VioSfxEOpxTLx76Gglvj/IynoG8Omm6YSw1Iv3Ae4DHFTQF8QBqr/GIvSU7MkEuLxvySgeI8VExBNzD0Z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c6dM8wk4x6rzoBmSlqXBwxFy5VfCESIg4/lJtpXwvyLNRwHU5hPzNj4FvKMOubkMhCu/RG+mXzZg/gBI8GogUQWtlq+JfI4KnaoxXcJ6xWltLiJw8CxLK1YqtHslaTrTdbgT2dlAUki2nCuTxObF/MWe1/obu0QCy5dLV6CMa+qnygkBHvKfZJXeUg6LbdH9ucCE/xav5KEoCo 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)(82310400026)(376014)(7416014)(36860700013)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2024 07:51:59.7719 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f08ba1c8-2a0d-4995-f5fc-08dcccb674ff 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: DS1PEPF0001709B.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5676 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: Tony Nguyen --- drivers/net/ethernet/intel/igb/igb_ethtool.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/net/ethernet/intel/igb/igb_ethtool.c b/drivers/net/ethernet/intel/igb/igb_ethtool.c index 06b9970dffad..ca6ccbc13954 100644 --- a/drivers/net/ethernet/intel/igb/igb_ethtool.c +++ b/drivers/net/ethernet/intel/igb/igb_ethtool.c @@ -2387,15 +2387,11 @@ static int igb_get_ts_info(struct net_device *dev, if (adapter->ptp_clock) info->phc_index = ptp_clock_index(adapter->ptp_clock); - else - info->phc_index = -1; switch (adapter->hw.mac.type) { case e1000_82575: info->so_timestamping = - SOF_TIMESTAMPING_TX_SOFTWARE | - SOF_TIMESTAMPING_RX_SOFTWARE | - SOF_TIMESTAMPING_SOFTWARE; + SOF_TIMESTAMPING_TX_SOFTWARE; return 0; case e1000_82576: case e1000_82580: @@ -2405,8 +2401,6 @@ static int igb_get_ts_info(struct net_device *dev, case e1000_i211: 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;