summaryrefslogtreecommitdiffstats
path: root/net/ethtool/common.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2020-07-06 06:27:56 +0200
committerDavid S. Miller <davem@davemloft.net>2020-07-08 00:41:04 +0200
commit4895d7808e7030c831f2ef83a3cc6ec0d46c30b1 (patch)
tree5ce4027f9658bae6ae1a8223a18eb1f022ebd2ca /net/ethtool/common.h
parentDocumentation: networking: fix ethtool-netlink table formats (diff)
downloadlinux-4895d7808e7030c831f2ef83a3cc6ec0d46c30b1.tar.xz
linux-4895d7808e7030c831f2ef83a3cc6ec0d46c30b1.zip
net: ethtool: Introduce ethtool_phy_ops
In order to decouple ethtool from its PHY library dependency, define an ethtool_phy_ops singleton which can be overriden by the PHY library when it loads with an appropriate set of function pointers. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--net/ethtool/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ethtool/common.h b/net/ethtool/common.h
index a62f68ccc43a..b83bef38368c 100644
--- a/net/ethtool/common.h
+++ b/net/ethtool/common.h
@@ -37,4 +37,6 @@ bool convert_legacy_settings_to_link_ksettings(
int ethtool_get_max_rxfh_channel(struct net_device *dev, u32 *max);
int __ethtool_get_ts_info(struct net_device *dev, struct ethtool_ts_info *info);
+extern const struct ethtool_phy_ops *ethtool_phy_ops;
+
#endif /* _ETHTOOL_COMMON_H */