net/mlx5: Add support for DSFP module EEPROM dumps
Allow the driver to recognise DSFP transceiver module ID and therefore allow its EEPROM dumps using ethtool. Signed-off-by: Vladyslav Tarasiuk <vladyslavt@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
e109d2b204
Коммит
4c88fa412a
|
@ -454,6 +454,8 @@ int mlx5_query_module_eeprom_by_page(struct mlx5_core_dev *dev,
|
|||
if (params->page > 3)
|
||||
return -EINVAL;
|
||||
break;
|
||||
case MLX5_MODULE_ID_DSFP:
|
||||
break;
|
||||
default:
|
||||
mlx5_core_err(dev, "Module ID not recognized: 0x%x\n", module_id);
|
||||
return -EINVAL;
|
||||
|
|
|
@ -45,6 +45,7 @@ enum mlx5_module_id {
|
|||
MLX5_MODULE_ID_QSFP = 0xC,
|
||||
MLX5_MODULE_ID_QSFP_PLUS = 0xD,
|
||||
MLX5_MODULE_ID_QSFP28 = 0x11,
|
||||
MLX5_MODULE_ID_DSFP = 0x1B,
|
||||
};
|
||||
|
||||
enum mlx5_an_status {
|
||||
|
|
Загрузка…
Ссылка в новой задаче