Skip to content

Commit c431f85

Browse files
Eran Ben ElishaSaeed Mahameed
authored andcommitted
net/mlx5e: Fix SFF 8472 eeprom length
SFF 8472 eeprom length is 512 bytes. Fix module info return value to support 512 bytes read. Fixes: ace329f ("net/mlx5e: ethtool, Remove unsupported SFP EEPROM high pages query") Signed-off-by: Eran Ben Elisha <[email protected]> Reviewed-by: Aya Levin <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 73e6551 commit c431f85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ static int mlx5e_get_module_info(struct net_device *netdev,
16431643
break;
16441644
case MLX5_MODULE_ID_SFP:
16451645
modinfo->type = ETH_MODULE_SFF_8472;
1646-
modinfo->eeprom_len = MLX5_EEPROM_PAGE_LENGTH;
1646+
modinfo->eeprom_len = ETH_MODULE_SFF_8472_LEN;
16471647
break;
16481648
default:
16491649
netdev_err(priv->netdev, "%s: cable type not recognized:0x%x\n",

0 commit comments

Comments
 (0)