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 /net | |
parent | aed5004ee7a0e6f198a6b26fb6a1aa21588a9539 (diff) | |
download | linux-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.c | 2 |
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); |