ethtool: Introduce the --show-ports command
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | update UAPI header copiesuapi/ uapi/ uapi/ +2 more | +40 | 0 replies | |
| 2/2 | ethtool: Introduce a command to list an interface's portsMakefile.am ethtool.8.in ethtool.c +2 more | +173 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH ethtool-next 0/2] ethtool: Introduce the --show-ports command
Hi everyone,
Following the merge of the phy_port GET ethnl command into net-next, here's the ethtool counterpart that uses that commande to enumerate the ports and their capabilities. This is queued for v7.4.
The output looks like this:
# ethtool --show-ports *
Port for eth0:
Port id: 1
Port type: mdi
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
10000baseT/Full
2500baseT/Full
5000baseT/FullPort for eth0:
Port id: 2
Port type: sfp
Supported MII interfaces: 10gbase-r
Port for eth2:
Port id: 1
Port type: mdi
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full
Port for eth3:
Port id: 1
Port type: sfp
Supported MII interfaces: sgmii 1000base-x 2500base-x
Port for eth3:
Port id: 2
Port type: mdi
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 1000baseT/Half 1000baseT/Full 1000baseX/Full
Upstream port id: 1
Patch 1 syncs the kernel headers, and patch 2 implements the --show-ports command.
Thanks,
Maxime
Maxime Chevallier (2):
update UAPI header copies
ethtool: Introduce a command to list an interface's ports
Makefile.am | 1 + ethtool.8.in | 30 ++++++ ethtool.c | 6 ++ netlink/extapi.h | 2 + netlink/port.c | 134 +++++++++++++++++++++++++ uapi/linux/ethtool.h | 2 + uapi/linux/ethtool_netlink_generated.h | 22 ++++ uapi/linux/if_addr.h | 1 + uapi/linux/if_link.h | 1 + uapi/linux/netlink.h | 14 +++ 10 files changed, 213 insertions(+) create mode 100644 netlink/port.c
Signature · 1 line
2.56.1