summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorVladyslav Tarasiuk <vladyslavt@nvidia.com>2021-04-09 11:06:37 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-11 16:34:56 -0700
commit4c88fa412a100f925b8ab1aa952a672895f69d35 (patch)
treee538e34a76e2c98b4ca6661c5ae38b7b8fca9eee /drivers
parente109d2b204daa223e6d3cdaa369071c3ea96dcbf (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlx5/core/port.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/port.c b/drivers/net/ethernet/mellanox/mlx5/core/port.c
index 522a41f8f1e2..1ef2b6a848c1 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/port.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/port.c
@@ -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;