net: ethtool: Add a command to expose current time stamping layer
authorKory Maincent <kory.maincent@bootlin.com>
Tue, 14 Nov 2023 11:28:36 +0000 (12:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Nov 2023 14:52:57 +0000 (14:52 +0000)
commit11d55be06df0aedf19b05ab61c2d26b31a3c7e64
tree8d23cbb5b4a7bef39d108dbd1d839a6d9d96cb96
parentacec05fb78abb74fdab2195bfca9a6d38a732643
net: ethtool: Add a command to expose current time stamping layer

Time stamping on network packets may happen either in the MAC or in
the PHY, but not both.  In preparation for making the choice
selectable, expose both the current layers via ethtool.

In accordance with the kernel implementation as it stands, the current
layer will always read as "phy" when a PHY time stamping device is
present. Future patches will allow changing the current layer
administratively.

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