[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aYI2fZPCehPkke1G@horms.kernel.org>
Date: Tue, 3 Feb 2026 17:55:09 +0000
From: Simon Horman <horms@...nel.org>
To: Maxime Chevallier <maxime.chevallier@...tlin.com>
Cc: davem@...emloft.net, Andrew Lunn <andrew@...n.ch>,
Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
Russell King <linux@...linux.org.uk>,
Heiner Kallweit <hkallweit1@...il.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, thomas.petazzoni@...tlin.com,
Christophe Leroy <christophe.leroy@...roup.eu>,
Herve Codina <herve.codina@...tlin.com>,
Florian Fainelli <f.fainelli@...il.com>,
Vladimir Oltean <vladimir.oltean@....com>,
Köry Maincent <kory.maincent@...tlin.com>,
Marek Behún <kabel@...nel.org>,
Oleksij Rempel <o.rempel@...gutronix.de>,
Nicolò Veronese <nicveronese@...il.com>,
mwojtas@...omium.org, Romain Gantois <romain.gantois@...tlin.com>,
Daniel Golle <daniel@...rotopia.org>,
Dimitri Fedrau <dimitri.fedrau@...bherr.com>
Subject: Re: [PATCH net-next v3 10/11] netlink: specs: Add ethernet port
listing with ethtool
On Sun, Feb 01, 2026 at 04:12:47PM +0100, Maxime Chevallier wrote:
...
> diff --git a/Documentation/networking/ethtool-netlink.rst b/Documentation/networking/ethtool-netlink.rst
> index af56c304cef4..3e673755800b 100644
> --- a/Documentation/networking/ethtool-netlink.rst
> +++ b/Documentation/networking/ethtool-netlink.rst
> @@ -2522,6 +2522,40 @@ Within each channel nest, only the metrics supported by the PHY will be present.
> See ``struct phy_mse_snapshot`` kernel documentation in
> ``include/linux/phy.h``.
>
> +PORT_GET
> +========
> +
> +Retrieve information about the physical connection points of a network device,
> +referred to as "ports". User needs to specify a PORT_ID for the DO operation,
> +in which case the DO request returns information about that specific port.
> +
> +As there can be more than one port, the DUMP operation can be used to list the
> +ports present on a given interface, by passing an interface index or name in
> +the dump request.
> +
> +Request contents:
> +
> +==================================== ====== =================================
Hi Maxime,
make htmldocs complains that "Bottom/header table border does not match top
border.".
> + ``ETHTOOL_A_PORT_HEADER`` nested request header
> + ``ETHTOOL_A_PORT_ID`` u32 port id
> + ==================================== ====== ===============================
> +
> +Kernel response contents:
> +
> + ===================================== ====== =============================
> + ``ETHTOOL_A_PORT_HEADER`` nested request header
> + ``ETHTOOL_A_PORT_ID`` u32 the port's unique identifier,
> + per netdevice.
> + ``ETHTOOL_A_PORT_SUPPORTED_MODES`` bitset bitset of supported linkmodes
> + ``ETHTOOL_A_PORT_SUPPORTED_INTERFACES`` bitset bitset of supported MII
> + interfaces
> + ``ETHTOOL_A_PORT_TYPE`` u8 the port type
> + ``ETHTOOL_A_PORT_VACANT`` u8 for non-mdi ports, indicates
> + if the port is connected to
> + another device that could
> + expose a MDI
> + ===================================== ====== =============================
> +
> Request translation
> ===================
>
Powered by blists - more mailing lists