summaryrefslogtreecommitdiffstats
path: root/net/core/dev.h
diff options
context:
space:
mode:
authorKory Maincent <kory.maincent@bootlin.com>2024-06-12 17:04:02 +0200
committerJakub Kicinski <kuba@kernel.org>2024-06-18 03:25:53 +0200
commitefb459303dd5dd6e198a0d58322dc04c3356dc23 (patch)
tree8effbe2051b671def9ba3b960daf8cc9377a76a3 /net/core/dev.h
parentnet: dwc-xlgmac: fix missing MODULE_DESCRIPTION() warning (diff)
downloadlinux-efb459303dd5dd6e198a0d58322dc04c3356dc23.tar.xz
linux-efb459303dd5dd6e198a0d58322dc04c3356dc23.zip
net: Move dev_set_hwtstamp_phylib to net/core/dev.h
This declaration was added to the header to be called from ethtool. ethtool is separated from core for code organization but it is not really a separate entity, it controls very core things. As ethtool is an internal stuff it is not wise to have it in netdevice.h. Move the declaration to net/core/dev.h instead. Remove the EXPORT_SYMBOL_GPL call as ethtool can not be built as a module. Reviewed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Link: https://lore.kernel.org/r/20240612-feature_ptp_netnext-v15-2-b2a086257b63@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/dev.h')
-rw-r--r--net/core/dev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/dev.h b/net/core/dev.h
index b7b518bc2be5..58f88d28bc99 100644
--- a/net/core/dev.h
+++ b/net/core/dev.h
@@ -166,4 +166,8 @@ static inline void dev_xmit_recursion_dec(void)
__this_cpu_dec(softnet_data.xmit.recursion);
}
+int dev_set_hwtstamp_phylib(struct net_device *dev,
+ struct kernel_hwtstamp_config *cfg,
+ struct netlink_ext_ack *extack);
+
#endif