Skip to content

net: Allow targeting specific PHYs through netlink

Maxime Chevallier linux-arm-kernel lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8netlink: specs: add phy-index as a header parameterDocumentation/netlink/specs/ethtool.yaml+3 -00 replies
2/8net: ethtool: Introduce a command to list PHYs on an interfaceDocumentation/networking/ethtool-netlink.rst include/uapi/linux/ethtool_netlink.h net/ethtool/Makefile +3 more+377 -10 replies
3/8netlink: specs: add ethnl PHY_GET command setDocumentation/netlink/specs/ethtool.yaml+59 -00 replies
4/8net: ethtool: plca: Target the command to the requested PHYnet/ethtool/plca.c+9 -100 replies
5/8net: ethtool: pse-pd: Target the command to the requested PHYnet/ethtool/pse-pd.c+5 -80 replies
6/8net: ethtool: cable-test: Target the command to the requested PHYnet/ethtool/cabletest.c+8 -80 replies
7/8net: ethtool: strset: Allow querying phy stats by indexnet/ethtool/strset.c+9 -80 replies
8/8Documentation: networking: document phy_link_topologyDocumentation/networking/ethtool-netlink.rst Documentation/networking/index.rst Documentation/networking/phy-link-topology.rst+124 -01 reply

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/8R-b
2/8R-b
3/8
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/8] net: Allow targeting specific PHYs through netlink

Hi everyone,

This series is a resend of the las 8 patches of the link_topology series:
https://lore.kernel.org/netdev/[email protected]/

There were a some conflicts on the netlink specs, which I guess made the series fail to apply.

All patches of this series allow accessing and using the PHYs from the topology through netlink commands such as PLCA, PSE-PD, Cable testing and strsets, and introduces a dedicated command to list said PHYs.

This re-send is simply rebased on net-next, with the addition of Andrew's Reviewed-by tags.

Thanks,

Maxime

Maxime Chevallier (8):
netlink: specs: add phy-index as a header parameter
net: ethtool: Introduce a command to list PHYs on an interface
netlink: specs: add ethnl PHY_GET command set
net: ethtool: plca: Target the command to the requested PHY
net: ethtool: pse-pd: Target the command to the requested PHY
net: ethtool: cable-test: Target the command to the requested PHY
net: ethtool: strset: Allow querying phy stats by index
Documentation: networking: document phy_link_topology

 Documentation/netlink/specs/ethtool.yaml      |  62 ++++
 Documentation/networking/ethtool-netlink.rst  |  45 +++
 Documentation/networking/index.rst            |   1 +
 .../networking/phy-link-topology.rst          | 120 +++++++
 include/uapi/linux/ethtool_netlink.h          |  20 ++
 net/ethtool/Makefile                          |   2 +-
 net/ethtool/cabletest.c                       |  16 +-
 net/ethtool/netlink.c                         |   9 +
 net/ethtool/netlink.h                         |   5 +
 net/ethtool/phy.c                             | 300 ++++++++++++++++++
 net/ethtool/plca.c                            |  19 +-
 net/ethtool/pse-pd.c                          |  13 +-
 net/ethtool/strset.c                          |  17 +-
 13 files changed, 594 insertions(+), 35 deletions(-)
 create mode 100644 Documentation/networking/phy-link-topology.rst
 create mode 100644 net/ethtool/phy.c
Signature · 1 line
2.44.0