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)
commit135dd9594f127c8a82d141c3c8430e9e2143216a
tree504a3833490992b60ea50d5f501f9e9389a859bb
parent526f5b851a96566803ee4bee60d0a34df56c77f8
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: 7202da8b7f71 ("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