net: ethtool: tsinfo: Enhance tsinfo to support several hwtstamp by net topology
authorKory Maincent <kory.maincent@bootlin.com>
Thu, 12 Dec 2024 17:06:44 +0000 (18:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Dec 2024 12:51:41 +0000 (12:51 +0000)
commitb9e3f7dc9ed95daeb83cfa45b821cacaa01aa906
tree203d996af3d023dc7f6e7dac889ae47768d09b4d
parent35f7cad1743e04bf2944a2aadb6b6a42adc57bca
net: ethtool: tsinfo: Enhance tsinfo to support several hwtstamp by net topology

Either the MAC or the PHY can provide hwtstamp, so we should be able to
read the tsinfo for any hwtstamp provider.

Enhance 'get' command to retrieve tsinfo of hwtstamp providers within a
network topology.

Add support for a specific dump command to retrieve all hwtstamp
providers within the network topology, with added functionality for
filtered dump to target a single interface.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/netlink/specs/ethtool.yaml
Documentation/networking/ethtool-netlink.rst
include/linux/ethtool.h
include/uapi/linux/ethtool_netlink_generated.h
net/ethtool/common.c
net/ethtool/common.h
net/ethtool/netlink.c
net/ethtool/netlink.h
net/ethtool/ts.h [new file with mode: 0644]
net/ethtool/tsinfo.c