]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4a8be59d1b9b624b08efb73a6bdf98e9fd04c3e
treefd96e8357cd2d37a6d8e78a7f4f099b8f07e1a15
parent39adc5308df9f7d29e6982e8d89497d16816ed9e
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