]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit289495b6d7a6438156145d882ff576efd53ef1af
tree037c408e352f6153987c06ff9e2ef5431e2a0c8e
parent6505211da3a245aca1bee62f497510623b4c8924
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