ethtool: Allow network drivers to dump arbitrary EEPROM data
Define get_module_eeprom_by_page() ethtool callback and implement netlink infrastructure. get_module_eeprom_by_page() allows network drivers to dump a part of module's EEPROM specified by page and bank numbers along with offset and length. It is effectively a netlink replacement for get_module_info() and get_module_eeprom() pair, which is needed due to emergence of complex non-linear EEPROM layouts. Signed-off-by:Vladyslav Tarasiuk <vladyslavt@nvidia.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- Documentation/networking/ethtool-netlink.rst 34 additions, 2 deletionsDocumentation/networking/ethtool-netlink.rst
- include/linux/ethtool.h 32 additions, 1 deletioninclude/linux/ethtool.h
- include/uapi/linux/ethtool_netlink.h 19 additions, 0 deletionsinclude/uapi/linux/ethtool_netlink.h
- net/ethtool/Makefile 1 addition, 1 deletionnet/ethtool/Makefile
- net/ethtool/eeprom.c 171 additions, 0 deletionsnet/ethtool/eeprom.c
- net/ethtool/netlink.c 11 additions, 0 deletionsnet/ethtool/netlink.c
- net/ethtool/netlink.h 2 additions, 0 deletionsnet/ethtool/netlink.h
Loading