Skip to content

Commit f881c4a

Browse files
daniellertsdavem330
authored andcommitted
mlxsw: core: Add support for OSFP transceiver modules
The driver can already dump the EEPROM contents of QSFP-DD transceiver modules via its ethtool_ops::get_module_info() and ethtool_ops::get_module_eeprom() callbacks. Add support for OSFP transceiver modules by adding their SFF-8024 Identifier Value (0x19). This is required for future NVIDIA Spectrum-4 based systems that will be equipped with OSFP transceivers. Signed-off-by: Danielle Ratson <danieller@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent cc4d3de commit f881c4a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/net/ethernet/mellanox/mlxsw/core_env.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ mlxsw_env_validate_cable_ident(struct mlxsw_core *core, int id, bool *qsfp,
8787
*qsfp = true;
8888
break;
8989
case MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_QSFP_DD:
90+
case MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_OSFP:
9091
*qsfp = true;
9192
*cmis = true;
9293
break;
@@ -303,6 +304,7 @@ int mlxsw_env_get_module_info(struct net_device *netdev,
303304
modinfo->eeprom_len = ETH_MODULE_SFF_8472_LEN / 2;
304305
break;
305306
case MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_QSFP_DD:
307+
case MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_OSFP:
306308
/* Use SFF_8636 as base type. ethtool should recognize specific
307309
* type through the identifier value.
308310
*/

drivers/net/ethernet/mellanox/mlxsw/reg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10037,6 +10037,7 @@ enum mlxsw_reg_mcia_eeprom_module_info_id {
1003710037
MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_QSFP_PLUS = 0x0D,
1003810038
MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_QSFP28 = 0x11,
1003910039
MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_QSFP_DD = 0x18,
10040+
MLXSW_REG_MCIA_EEPROM_MODULE_INFO_ID_OSFP = 0x19,
1004010041
};
1004110042

1004210043
enum mlxsw_reg_mcia_eeprom_module_info {

0 commit comments

Comments
 (0)