net: ethtool: Introduce ethtool_phy_ops
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 6 Jul 2020 04:27:56 +0000 (21:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Jul 2020 22:41:04 +0000 (15:41 -0700)
commit4895d7808e7030c831f2ef83a3cc6ec0d46c30b1
tree5ce4027f9658bae6ae1a8223a18eb1f022ebd2ca
parent1a4d681634fad302157afcb53a178c4c59cb75ee
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>
include/linux/ethtool.h
net/ethtool/common.c
net/ethtool/common.h