From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) (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 624BA1B29C2; Wed, 14 Aug 2024 14:31:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=93.17.235.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723645877; cv=none; b=MIH1INcwOx6nSbY02Xx/ErsRRlDujmuSPLbqQVl0KGNZ87ENkYXh+iLSeTHTNf4rDC7yAJbTcz9vKcLoczeBKWgNgP2RNdb+km481h4tNkPIxi5SsS2MmwkhS8JsodmsHMxUqE/UXS0dOyeiNRGtDVwNI6IHBQlgdDT0NafZx+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723645877; c=relaxed/simple; bh=2tDV/1VsKQYTOmnMpeJpatftHLYLI+LoozCYciQtYCI=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=noTBNqKh6Htm5fFqd+6lcWHNTR38nztg8Q3PLASoVJaEWvaa/XCeCsUXPBhUSqctTlUcUnSOZ4hhXCGKMDQSOfjRYc/mTlKbJ76QLYj0qvBHwswKYIF03q3FIlfDUpyB1wakQTAzzt8dO7wOsMzLEI2/dblyslUHATMWjxZfrdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=csgroup.eu; spf=pass smtp.mailfrom=csgroup.eu; arc=none smtp.client-ip=93.17.235.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=csgroup.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=csgroup.eu Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4WkW024Nk9z9sPd; Wed, 14 Aug 2024 16:31:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jx_b2X4VnZYF; Wed, 14 Aug 2024 16:31:14 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4WkW023MFfz9rvV; Wed, 14 Aug 2024 16:31:14 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 5FC358B775; Wed, 14 Aug 2024 16:31:14 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id A01nv7Omov-2; Wed, 14 Aug 2024 16:31:14 +0200 (CEST) Received: from [192.168.232.91] (unknown [192.168.232.91]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 3DBF38B764; Wed, 14 Aug 2024 16:31:13 +0200 (CEST) Message-ID: Date: Wed, 14 Aug 2024 16:31:12 +0200 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v17 08/14] netlink: specs: add ethnl PHY_GET command set To: Maxime Chevallier , davem@davemloft.net Cc: 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, Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?UTF-8?Q?K=C3=B6ry_Maincent?= , Jesse Brandeburg , =?UTF-8?Q?Marek_Beh=C3=BAn?= , Piergiorgio Beruto , Oleksij Rempel , =?UTF-8?Q?Nicol=C3=B2_Veronese?= , Simon Horman , mwojtas@chromium.org, Nathan Chancellor , Antoine Tenart , Marc Kleine-Budde , Dan Carpenter , Romain Gantois References: <20240709063039.2909536-1-maxime.chevallier@bootlin.com> <20240709063039.2909536-9-maxime.chevallier@bootlin.com> Content-Language: fr-FR From: Christophe Leroy In-Reply-To: <20240709063039.2909536-9-maxime.chevallier@bootlin.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 09/07/2024 à 08:30, Maxime Chevallier a écrit : > 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 Reviewed-by: Christophe Leroy Tested-by: Christophe Leroy > --- > Documentation/netlink/specs/ethtool.yaml | 55 ++++++++++++++++++++++++ > 1 file changed, 55 insertions(+) > > diff --git a/Documentation/netlink/specs/ethtool.yaml b/Documentation/netlink/specs/ethtool.yaml > index 586f1da8eb7b..d96a8050172b 100644 > --- a/Documentation/netlink/specs/ethtool.yaml > +++ b/Documentation/netlink/specs/ethtool.yaml > @@ -39,6 +39,11 @@ definitions: > - ovld-detected > - power-not-available > - short-detected > + - > + name: phy-upstream-type > + enum-name: > + type: enum > + entries: [ mac, phy ] > > attribute-sets: > - > @@ -1088,6 +1093,35 @@ 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 > > operations: > enum-model: directional > @@ -1880,3 +1914,24 @@ 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 > + dump: *phy-get-op