]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query
authorErez Alfasi <ereza@mellanox.com>
Mon, 20 May 2019 14:42:52 +0000 (17:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 May 2019 18:33:57 +0000 (11:33 -0700)
commit5009d4350ec291d01104a2f452a9dccca8e1f66e
tree504a3833490992b60ea50d5f501f9e9389a859bb
parent50eb85466e3736d1c9f94d9cc3af8b5ad241b805
net/mlx4_en: ethtool, Remove unsupported SFP EEPROM high pages query

Querying EEPROM high pages data for SFP module is currently
not supported by our driver but is still tried, resulting in
invalid FW queries.

Set the EEPROM ethtool data length to 256 for SFP module to
limit the reading for page 0 only and prevent invalid FW queries.

Fixes: 98c67e413c7e ("ethtool, net/mlx4_en: Cable info, get_module_info/eeprom ethtool support")
Signed-off-by: Erez Alfasi <ereza@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_ethtool.c
drivers/net/ethernet/mellanox/mlx4/port.c