diff options
author | Kory Maincent <kory.maincent@bootlin.com> | 2023-11-14 12:28:40 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-11-18 14:52:57 +0000 |
commit | 51bdf3165f012827644c474a6d905baa3de3f1ea (patch) | |
tree | fcf4b1ce65392445a9fb675b1d61bcd845d151dd /include/linux/net_tstamp.h | |
parent | aed5004ee7a0e6f198a6b26fb6a1aa21588a9539 (diff) | |
download | linux-stable-51bdf3165f012827644c474a6d905baa3de3f1ea.tar.gz linux-stable-51bdf3165f012827644c474a6d905baa3de3f1ea.tar.bz2 linux-stable-51bdf3165f012827644c474a6d905baa3de3f1ea.zip |
net: Replace hwtstamp_source by timestamping layer
Replace hwtstamp_source which is only used by the kernel_hwtstamp_config
structure by the more widely use timestamp_layer structure. This is done
to prepare the support of selectable timestamping source.
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/net_tstamp.h')
-rw-r--r-- | include/linux/net_tstamp.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/linux/net_tstamp.h b/include/linux/net_tstamp.h index eb01c37e71e0..bb289c2ad376 100644 --- a/include/linux/net_tstamp.h +++ b/include/linux/net_tstamp.h @@ -5,11 +5,6 @@ #include <uapi/linux/net_tstamp.h> -enum hwtstamp_source { - HWTSTAMP_SOURCE_NETDEV, - HWTSTAMP_SOURCE_PHYLIB, -}; - /** * struct kernel_hwtstamp_config - Kernel copy of struct hwtstamp_config * @@ -20,8 +15,8 @@ enum hwtstamp_source { * a legacy implementation of a lower driver * @copied_to_user: request was passed to a legacy implementation which already * copied the ioctl request back to user space - * @source: indication whether timestamps should come from the netdev or from - * an attached phylib PHY + * @source: indication whether timestamps should come from software, the netdev + * or from an attached phylib PHY * * Prefer using this structure for in-kernel processing of hardware * timestamping configuration, over the inextensible struct hwtstamp_config @@ -33,7 +28,7 @@ struct kernel_hwtstamp_config { int rx_filter; struct ifreq *ifr; bool copied_to_user; - enum hwtstamp_source source; + enum timestamping_layer source; }; static inline void hwtstamp_config_to_kernel(struct kernel_hwtstamp_config *kernel_cfg, |