summaryrefslogtreecommitdiff
path: root/include/linux/sfp.h
diff options
context:
space:
mode:
authorVladyslav Tarasiuk <vladyslavt@nvidia.com>2021-04-09 11:06:39 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-11 16:34:56 -0700
commit96d971e307cc0e434f96329b42bbd98cfbca07d2 (patch)
tree3fbcce0246c0d5c08d6a8fce9422e8862e18463a /include/linux/sfp.h
parent95dfc7effd88b49d66791678e042970824cae838 (diff)
ethtool: Add fallback to get_module_eeprom from netlink command
In case netlink get_module_eeprom_by_page() callback is not implemented by the driver, try to call old get_module_info() and get_module_eeprom() pair. Recalculate parameters to get_module_eeprom() offset and len using page number and their sizes. Return error if this can't be done. Signed-off-by: Vladyslav Tarasiuk <vladyslavt@nvidia.com> Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/sfp.h')
0 files changed, 0 insertions, 0 deletions