net: ethtool: Export helpers for getting EEPROM info
authorAndrew Lunn <andrew@lunn.ch>
Fri, 9 Apr 2021 08:06:38 +0000 (11:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Apr 2021 23:34:56 +0000 (16:34 -0700)
commit95dfc7effd88b49d66791678e042970824cae838
treefd96e8357cd2d37a6d8e78a7f4f099b8f07e1a15
parent4c88fa412a100f925b8ab1aa952a672895f69d35
net: ethtool: Export helpers for getting EEPROM info

There are two ways to retrieve information from SFP EEPROMs.  Many
devices make use of the common code, and assign the sfp_bus pointer in
the netdev to point to the bus holding the SFP device. Some MAC
drivers directly implement ops in there ethool structure.

Export within net/ethtool the two helpers used to call these methods,
so that they can also be used in the new netlink code.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/common.h
net/ethtool/ioctl.c