ethtool: wire in generic SFP module access
authorAndrew Lunn <andrew@lunn.ch>
Fri, 9 Apr 2021 08:06:41 +0000 (11:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Apr 2021 23:34:56 +0000 (16:34 -0700)
commitc97a31f66ebcab54c006878142fb683c6116bed1
tree037c408e352f6153987c06ff9e2ef5431e2a0c8e
parentd740513f05a24b1a46722325974223980f068728
ethtool: wire in generic SFP module access

If the device has a sfp bus attached, call its
sfp_get_module_eeprom_by_page() function, otherwise use the ethtool op
for the device. This follows how the IOCTL works.

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