]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit77a64a134958107d218ab08ab2abd3ff02715ae1
tree5ce4027f9658bae6ae1a8223a18eb1f022ebd2ca
parentcafda5e32ff2b81a3ffcf8979b540546da59591d
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