Commit 8d6b57e6 authored by Mikhael Goikhman's avatar Mikhael Goikhman Committed by Saeed Mahameed

net/mlx5: Add support for plugged-disabled cable status in PME

Support a new hardware module status in port module events:
- module_status=0x4 (Cable plugged, but disabled)
Signed-off-by: default avatarMikhael Goikhman <migo@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 37a12aae
...@@ -166,6 +166,8 @@ static const char *mlx5_pme_status_to_string(enum port_module_event_status_type ...@@ -166,6 +166,8 @@ static const char *mlx5_pme_status_to_string(enum port_module_event_status_type
return "Cable unplugged"; return "Cable unplugged";
case MLX5_MODULE_STATUS_ERROR: case MLX5_MODULE_STATUS_ERROR:
return "Cable error"; return "Cable error";
case MLX5_MODULE_STATUS_DISABLED:
return "Cable disabled";
default: default:
return "Unknown status"; return "Unknown status";
} }
......
...@@ -51,6 +51,7 @@ enum port_module_event_status_type { ...@@ -51,6 +51,7 @@ enum port_module_event_status_type {
MLX5_MODULE_STATUS_PLUGGED = 0x1, MLX5_MODULE_STATUS_PLUGGED = 0x1,
MLX5_MODULE_STATUS_UNPLUGGED = 0x2, MLX5_MODULE_STATUS_UNPLUGGED = 0x2,
MLX5_MODULE_STATUS_ERROR = 0x3, MLX5_MODULE_STATUS_ERROR = 0x3,
MLX5_MODULE_STATUS_DISABLED = 0x4,
MLX5_MODULE_STATUS_NUM, MLX5_MODULE_STATUS_NUM,
}; };
......
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