]> www.infradead.org Git - users/hch/misc.git/commit
net: Add the possibility to support a selected hwtstamp in netdevice
authorKory Maincent <kory.maincent@bootlin.com>
Thu, 12 Dec 2024 17:06:43 +0000 (18:06 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Dec 2024 12:51:40 +0000 (12:51 +0000)
commit35f7cad1743e04bf2944a2aadb6b6a42adc57bca
tree63ae79d9fb92533e051e790d52083fb0190b08f1
parentb18fe47c0c093cc429f7e4d7694fdf0fc362aaf5
net: Add the possibility to support a selected hwtstamp in netdevice

Introduce the description of a hwtstamp provider, mainly defined with a
the hwtstamp source and the phydev pointer.

Add a hwtstamp provider description within the netdev structure to
allow saving the hwtstamp we want to use. This prepares for future
support of an ethtool netlink command to select the desired hwtstamp
provider. By default, the old API that does not support hwtstamp
selectability is used, meaning the hwtstamp provider pointer is unset.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/linux/net_tstamp.h
include/linux/netdevice.h
include/uapi/linux/net_tstamp.h
net/core/dev_ioctl.c
net/core/timestamping.c