]> www.infradead.org Git - nvme.git/commit
mlxsw: Implement ethtool operation to write to a transceiver module EEPROM
authorIdo Schimmel <idosch@nvidia.com>
Thu, 27 Jun 2024 14:08:49 +0000 (17:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2024 09:48:22 +0000 (10:48 +0100)
commit1983a8007032321327a2c31b40d45dab544fcdf9
tree8a11b99259c85ac2f12c4dd519c368806e14a337
parent69540b7987ef05d1dff36981d4cc7c31e9716b36
mlxsw: Implement ethtool operation to write to a transceiver module EEPROM

Implement the ethtool_ops::set_module_eeprom_by_page operation to allow
ethtool to write to a transceiver module EEPROM, in a similar fashion to
the ethtool_ops::get_module_eeprom_by_page operation.

Signed-off-by: Ido Schimmel <idosch@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>
drivers/net/ethernet/mellanox/mlxsw/core_env.c
drivers/net/ethernet/mellanox/mlxsw/core_env.h
drivers/net/ethernet/mellanox/mlxsw/minimal.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_ethtool.c