aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorIdo Schimmel <idosch@nvidia.com>2024-06-27 17:08:48 +0300
committerDavid S. Miller <davem@davemloft.net>2024-06-28 10:48:21 +0100
commit69540b7987ef05d1dff36981d4cc7c31e9716b36 (patch)
tree159560489423057dd2982c79ee6d7ebc99aeb087 /tools/testing/selftests/net/lib/py/utils.py
parent8fda53719a596fa2a2880c42b5fa4126fbbbfc3d (diff)
downloadlinux-69540b7987ef05d1dff36981d4cc7c31e9716b36.tar.gz
linux-69540b7987ef05d1dff36981d4cc7c31e9716b36.tar.bz2
linux-69540b7987ef05d1dff36981d4cc7c31e9716b36.zip
ethtool: Add ethtool operation to write to a transceiver module EEPROM
Ethtool can already retrieve information from a transceiver module EEPROM by invoking the ethtool_ops::get_module_eeprom_by_page operation. Add a corresponding operation that allows ethtool to write to a transceiver module EEPROM. The new write operation is purely an in-kernel API and is not exposed to user space. The purpose of this operation is not to enable arbitrary read / write access, but to allow the kernel to write to specific addresses as part of transceiver module firmware flashing. In the future, more functionality can be implemented on top of these read / write operations. Adjust the comments of the 'ethtool_module_eeprom' structure as it is no longer used only for read access. Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Danielle Ratson <danieller@nvidia.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions