Skip to content

Commit

Permalink
[mlxlink] [mlxlink] bug fix for non-existing cable technology values …
Browse files Browse the repository at this point in the history
…in -m flag for Xodin cables

Description:

MSTFlint port needed:
Tested OS:
Tested devices:
Tested flows:

Known gaps (with RM ticket):

Issue:
  • Loading branch information
HarelKarni authored and ogalbxela committed Nov 6, 2024
1 parent 2edb3b4 commit 37e382f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
7 changes: 6 additions & 1 deletion mlxlink/modules/mlxlink_enums.h
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,12 @@ enum CABLE_TECHNOLOGY
TECHNOLOGY_COP_NEAR_FAR_END,
TECHNOLOGY_COP_FAR_END,
TECHNOLOGY_COP_NEAR_END,
TECHNOLOGY_COP_LINEAR
TECHNOLOGY_COP_LINEAR,
TECHNOLOGY_LASER_C_BAND,
TECHNOLOGY_LASER_L_BAND,
TECHNOLOGY_COP_LINEAR_NEAR_FAR_END,
TECHNOLOGY_COP_LINEAR_FAR_END,
TECHNOLOGY_COP_LINEAR_NEAR_END
};

enum OUI
Expand Down
26 changes: 16 additions & 10 deletions mlxlink/modules/mlxlink_maps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1299,19 +1299,25 @@ void MlxlinkMaps::initCableTechnologyMapping()
_cableTechnologyQsfp[TECHNOLOGY_850NM_VCSEL] = "850 nm VCSEL";
_cableTechnologyQsfp[TECHNOLOGY_1310NM_VCSEL] = "1310 nm VCSEL";
_cableTechnologyQsfp[TECHNOLOGY_1550NM_VCSEL] = "1550 nm VCSEL";
_cableTechnologyQsfp[TECHNOLOGY_1310NM_FP] = "1310 nm FP";
_cableTechnologyQsfp[TECHNOLOGY_1310NM_DFB] = "1310 nm DFB";
_cableTechnologyQsfp[TECHNOLOGY_1550NM_DFB] = "1550 nm DFB";
_cableTechnologyQsfp[TECHNOLOGY_1310NM_FP] = "1310 nm FP laser";
_cableTechnologyQsfp[TECHNOLOGY_1310NM_DFB] = "1310 nm DFB laser";
_cableTechnologyQsfp[TECHNOLOGY_1550NM_DFB] = "1550 nm DFB laser";
_cableTechnologyQsfp[TECHNOLOGY_1310NM_EML] = "1310 nm EML";
_cableTechnologyQsfp[TECHNOLOGY_1550NM_EML] = "1550 nm EML";
_cableTechnologyQsfp[TECHNOLOGY_OTHERS] = "Other / Undefined";
_cableTechnologyQsfp[TECHNOLOGY_1490NM_DFB] = "1490 nm DFB";
_cableTechnologyQsfp[TECHNOLOGY_COP_UNEQ] = "Copper cable unequalized";
_cableTechnologyQsfp[TECHNOLOGY_COP_PASV] = "Copper cable passive equalized";
_cableTechnologyQsfp[TECHNOLOGY_COP_NEAR_FAR_END] = "Copper cable, near and far end limiting active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_COP_FAR_END] = "Copper cable, far end limiting active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_COP_NEAR_END] = "Copper cable, near end limiting active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_COP_LINEAR] = "Copper cable, linear active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_1490NM_DFB] = "1490 nm DFB laser";
_cableTechnologyQsfp[TECHNOLOGY_COP_UNEQ] = "Copper cable, passive, unequalized";
_cableTechnologyQsfp[TECHNOLOGY_COP_PASV] = "Copper cable, passive, equalized";
_cableTechnologyQsfp[TECHNOLOGY_COP_NEAR_FAR_END] = "Copper cable with near and far end limiting active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_COP_FAR_END] = "Copper cable with far end limiting active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_COP_NEAR_END] = "Copper cable with near end limiting active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_COP_LINEAR] = "Copper cable with linear active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_LASER_C_BAND] = "C-band tunable laser";
_cableTechnologyQsfp[TECHNOLOGY_LASER_L_BAND] = "B-band tunable laser";
_cableTechnologyQsfp[TECHNOLOGY_COP_LINEAR_NEAR_FAR_END] =
"Copper cable with near end and far end linear active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_COP_LINEAR_FAR_END] = "Copper cable with far end linear active equalizers";
_cableTechnologyQsfp[TECHNOLOGY_COP_LINEAR_NEAR_END] = "Copper cable with near end linear active equalizers";

_cableTechnologySfp[0] = "N/A";
_cableTechnologySfp[4] = "Passive";
Expand Down

0 comments on commit 37e382f

Please sign in to comment.