From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5473AC3814E for ; Wed, 3 Jul 2024 15:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=HKJGfXiws2tYQ9mibdEFx9fRNcFEwScp0PLv7RWnhKQ=; b=TjtcXuAlXp+0zbeWIpjJY5NZP2 4pgGKM2Y680fcJQQjr659jv5XogqansQQet+ZUjBuQygAU7XHlhb20frzaC1iUwv6IrDi0Zyrj29/ S7ksOpQgv8eMtIZjYqtZYhzuSvox61oMfo3MsfSq5jbj2MAUDX0SSXrFtucrjbypH/Pquc1tn8jer ScHqppJmhOgTSzxMgVOHW0pqOk8SjdhEY/t4HjOEK0sz5V989OQCVukKjPFmIkPSpPwm1Fh2VA2mb IKxKalUDBhBz83/UQNzhpm/oGqLbSMrSvqilq0gUcxZ1xJY3INoysLFSqy0e3Z3JyFKoSAnfUctnS kokkvDZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP1i5-0000000Ae92-1kXT; Wed, 03 Jul 2024 15:15:53 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP0en-0000000APVt-3z5w for linux-arm-kernel@bombadil.infradead.org; Wed, 03 Jul 2024 14:08:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=HKJGfXiws2tYQ9mibdEFx9fRNcFEwScp0PLv7RWnhKQ=; b=ASgpdkLNrEwx2yMJFUZ5IUn1w5 lzGqKy2AfgPr9CdnBTHE8DuowphTENZ7zrKVWtPhgWnh68adf+s8c65dqZ6gzmEIKb8MxjnaEC1ce CmwPdu6wFHN22HNBNNZ125Nem1I7yd5sCMfvCAH3kAUlaUTScZhy+bHBvmRZPxhW3qJFAN4zvNOjr DoZCFx3g/0XLRbb/zPx0Sy9BFZt+p8lmr3cuJqjsiPWkIYvC0LMjBhHpASil8Cwe5EiChYgb7R9AB gKg3NEdEw2knfsCrkONehUdWPxrJ3Zvu+YtURvwEA4F2HXHdrLX5MhRC3L9Ofxp5cN/ukVQCmoqkw /AnkzBqA==; Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sP0ek-0000000A31w-23Tq for linux-arm-kernel@lists.infradead.org; Wed, 03 Jul 2024 14:08:24 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 63469E0006; Wed, 3 Jul 2024 14:08:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720015701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HKJGfXiws2tYQ9mibdEFx9fRNcFEwScp0PLv7RWnhKQ=; b=CwEvgihD5CEer/V1ueg0gtDl8yeYSEWS5hVYo0tWFVCzABtYIV2MFg2NTDc49tWOQuR/Ws 8X3g6NqyDuNQ8+LHuQ6Nsf97623kSdXtWUpYf/NE/sLM2D3psXG/GBiAFQucVnOoZz4FWM AonZ5t2LNDlL7cRcRgoxPgmJY7eGnjalRq0/nT1AE2E/TVkrDUtRHzr/LV4o1oRTSNh4BQ CciaDLA+mwExL/sHYHfK51dBnrrShsdwgTMRJd/2NEPCfBJ+8Nr5Lnf468n0sv4AVwZZkz 9icLzbRJnYMLxC+XhYZhTw0Zx6GdP1ga4Ciatwo2QMefejm0JsA4OemDO5OYVg== From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?UTF-8?q?K=C3=B6ry=20Maincent?= , Jesse Brandeburg , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Piergiorgio Beruto , Oleksij Rempel , =?UTF-8?q?Nicol=C3=B2=20Veronese?= , Simon Horman , mwojtas@chromium.org, Nathan Chancellor , Antoine Tenart , Marc Kleine-Budde , Dan Carpenter Subject: [PATCH net-next v15 08/14] netlink: specs: add ethnl PHY_GET command set Date: Wed, 3 Jul 2024 16:07:58 +0200 Message-ID: <20240703140806.271938-9-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240703140806.271938-1-maxime.chevallier@bootlin.com> References: <20240703140806.271938-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: maxime.chevallier@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240703_150822_877310_F786C939 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The PHY_GET command, supporting both DUMP and GET operations, is used to retrieve the list of PHYs connected to a netdevice, and get topology information to know where exactly it sits on the physical link. Add the netlink specs corresponding to that command. Signed-off-by: Maxime Chevallier --- Documentation/netlink/specs/ethtool.yaml | 59 ++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml index 4ca7c5b8c504..80d364729772 100644 --- a/Documentation/netlink/specs/ethtool.yaml +++ b/Documentation/netlink/specs/ethtool.yaml @@ -24,6 +24,11 @@ definitions: name: module-fw-flash-status type: enum entries: [ started, in_progress, completed, error ] + - + name: phy-upstream-type + enum-name: + type: enum + entries: [ mac, phy ] attribute-sets: - @@ -1037,6 +1042,38 @@ attribute-sets: - name: total type: uint + - + name: phy + attributes: + - + name: header + type: nest + nested-attributes: header + - + name: index + type: u32 + - + name: drvname + type: string + - + name: name + type: string + - + name: upstream-type + type: u32 + enum: phy-upstream-type + - + name: upstream-index + type: u32 + - + name: upstream-sfp-name + type: string + - + name: downstream-sfp-name + type: string + - + name: id + type: u32 operations: enum-model: directional @@ -1822,3 +1859,25 @@ operations: - status-msg - done - total + - + name: phy-get + doc: Get PHY devices attached to an interface + + attribute-set: phy + + do: &phy-get-op + request: + attributes: + - header + reply: + attributes: + - header + - index + - drvname + - name + - upstream-type + - upstream-index + - upstream-sfp-name + - downstream-sfp-name + - id + dump: *phy-get-op -- 2.45.1