net: ethtool: Add support for tsconfig command to get/set hwtstamp config
authorKory Maincent <kory.maincent@bootlin.com>
Thu, 12 Dec 2024 17:06:45 +0000 (18:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Dec 2024 12:51:41 +0000 (12:51 +0000)
commit6e9e2eed4f39d52edf5fd006409d211facf49f6b
tree917af57b3a8dc64df22f4ca5f0f1a0292ead6752
parentb9e3f7dc9ed95daeb83cfa45b821cacaa01aa906
net: ethtool: Add support for tsconfig command to get/set hwtstamp config

Introduce support for ETHTOOL_MSG_TSCONFIG_GET/SET ethtool netlink socket
to read and configure hwtstamp configuration of a PHC provider. Note that
simultaneous hwtstamp isn't supported; configuring a new one disables the
previous setting.

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
Documentation/networking/timestamping.rst
include/uapi/linux/ethtool_netlink_generated.h
net/ethtool/Makefile
net/ethtool/common.c
net/ethtool/common.h
net/ethtool/netlink.c
net/ethtool/netlink.h
net/ethtool/tsconfig.c [new file with mode: 0644]