]> 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)
commit7acbba370e309af5d8794929fa02d1e4e4597fb8
tree037c408e352f6153987c06ff9e2ef5431e2a0c8e
parentd9f39a7726cfc29ec1de498243b439e61dfcbb8c
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