Commit 235dbbec authored by Ido Schimmel's avatar Ido Schimmel Committed by Jakub Kicinski

mlxsw: Add support for transceiver module extended state

Add support for the transceiver module extended state and sub-state
added in previous patch. The extended state is meant to describe link
issues related to transceiver modules.
Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 3dfb5112
...@@ -96,6 +96,9 @@ mlxsw_sp_link_ext_state_opcode_map[] = { ...@@ -96,6 +96,9 @@ mlxsw_sp_link_ext_state_opcode_map[] = {
{1032, ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED, 0}, {1032, ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED, 0},
{1030, ETHTOOL_LINK_EXT_STATE_OVERHEAT, 0}, {1030, ETHTOOL_LINK_EXT_STATE_OVERHEAT, 0},
{1042, ETHTOOL_LINK_EXT_STATE_MODULE,
ETHTOOL_LINK_EXT_SUBSTATE_MODULE_CMIS_NOT_READY},
}; };
static void static void
...@@ -124,6 +127,10 @@ mlxsw_sp_port_set_link_ext_state(struct mlxsw_sp_ethtool_link_ext_state_opcode_m ...@@ -124,6 +127,10 @@ mlxsw_sp_port_set_link_ext_state(struct mlxsw_sp_ethtool_link_ext_state_opcode_m
link_ext_state_info->cable_issue = link_ext_state_info->cable_issue =
link_ext_state_mapping.link_ext_substate; link_ext_state_mapping.link_ext_substate;
break; break;
case ETHTOOL_LINK_EXT_STATE_MODULE:
link_ext_state_info->module =
link_ext_state_mapping.link_ext_substate;
break;
default: default:
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment