From patchwork Thu Aug 22 12:07:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 13773267 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 1621A185924 for ; Thu, 22 Aug 2024 12:07:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724328436; cv=none; b=W05/z0Y2hP2ZL2EccVhQfA1jz2hhJsrQuiLMxHbz3uOHQkIdCLav9rzThUf6Cmu9Qeqwf9Rk4U2WRhjSaKY9eOad1CD+jWQE2FPmuQPBJ3gaIXJfge0sxdsF8EXKaPbl2Ps9BZuWMEtikctYJNR4AyLRQPloOVRtHXuwaCI0hKE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724328436; c=relaxed/simple; bh=czRTfrk98lKNEWjV/3Slon7RyFlia9ef9kXjv+T+6BQ=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=AnIyDOGZEwJ2FDRpq6PIHF7mNySURbPlmo6UwcJ+cA5gJas8+vlDUTvsT5axVx9Ib7IaWjhmdw8cZN0NeKRiEUew1YqWWkeaErPTJUN7Vdz+fjiS+aSDJgsGVMnxIUXaTUaG5HJo/WOSanJMIaJDb0U0yvA3O41Nd/0eruUROQo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sh6an-0008CW-MG; Thu, 22 Aug 2024 14:07:05 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sh6an-002F7R-5s; Thu, 22 Aug 2024 14:07:05 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1sh6an-005qQF-0M; Thu, 22 Aug 2024 14:07:05 +0200 From: Oleksij Rempel To: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Russell King Subject: [PATCH net-next v3 0/3] Add ALCD Support to Cable Testing Interface Date: Thu, 22 Aug 2024 14:07:00 +0200 Message-Id: <20240822120703.1393130-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Hi all, This patch series introduces support for Active Link Cable Diagnostics (ALCD) in the ethtool cable testing interface and the DP83TD510 PHY driver. Why ALCD? On a 10BaseT1L interface, TDR (Time Domain Reflectometry) is not possible if the link partner is active - TDR will fail in these cases because it requires interrupting the link. Since the link is active, we already know the cable is functioning, so instead of using TDR, we can use ALCD. ALCD lets us measure cable length without disrupting the active link, which is crucial in environments where network uptime is important. It provides a way to gather diagnostic data without the need for downtime. What's in this series: - Extended the ethtool cable testing interface to specify the source of diagnostic results (TDR or ALCD). - Updated the DP83TD510 PHY driver to use ALCD when the link is active, ensuring we can still get cable length info without dropping the connection. Changes are described in separate patches. Thanks, Oleksij Oleksij Rempel (3): ethtool: Extend cable testing interface with result source information ethtool: Add support for specifying information source in cable test results phy: dp83td510: Utilize ALCD for cable length measurement when link is active Documentation/netlink/specs/ethtool.yaml | 6 + Documentation/networking/ethtool-netlink.rst | 5 + drivers/net/phy/dp83td510.c | 119 ++++++++++++++++++- include/linux/ethtool_netlink.h | 29 ++++- include/uapi/linux/ethtool_netlink.h | 11 ++ net/ethtool/cabletest.c | 19 ++- 6 files changed, 173 insertions(+), 16 deletions(-) --- 2.39.2