summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorKory Maincent <kory.maincent@bootlin.com>2023-11-14 12:28:40 +0100
committerDavid S. Miller <davem@davemloft.net>2023-11-18 14:52:57 +0000
commit51bdf3165f012827644c474a6d905baa3de3f1ea (patch)
treefcf4b1ce65392445a9fb675b1d61bcd845d151dd /net
parentaed5004ee7a0e6f198a6b26fb6a1aa21588a9539 (diff)
downloadlinux-51bdf3165f012827644c474a6d905baa3de3f1ea.tar.gz
linux-51bdf3165f012827644c474a6d905baa3de3f1ea.tar.bz2
linux-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 'net')
-rw-r--r--net/core/dev_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c
index 9a66cf5015f2..267cd00269d0 100644
--- a/net/core/dev_ioctl.c
+++ b/net/core/dev_ioctl.c
@@ -332,7 +332,7 @@ int dev_set_hwtstamp_phylib(struct net_device *dev,
bool changed = false;
int err;
- cfg->source = phy_ts ? HWTSTAMP_SOURCE_PHYLIB : HWTSTAMP_SOURCE_NETDEV;
+ cfg->source = phy_ts ? PHY_TIMESTAMPING : MAC_TIMESTAMPING;
if (phy_ts && (dev->priv_flags & IFF_SEE_ALL_HWTSTAMP_REQUESTS)) {
err = ops->ndo_hwtstamp_get(dev, &old_cfg);