Skip to content

Commit 8d6b57e

Browse files
Mikhael GoikhmanSaeed Mahameed
authored andcommitted
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: Mikhael Goikhman <migo@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
1 parent 37a12aa commit 8d6b57e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/events.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ static const char *mlx5_pme_status_to_string(enum port_module_event_status_type
166166
return "Cable unplugged";
167167
case MLX5_MODULE_STATUS_ERROR:
168168
return "Cable error";
169+
case MLX5_MODULE_STATUS_DISABLED:
170+
return "Cable disabled";
169171
default:
170172
return "Unknown status";
171173
}

drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ enum port_module_event_status_type {
5151
MLX5_MODULE_STATUS_PLUGGED = 0x1,
5252
MLX5_MODULE_STATUS_UNPLUGGED = 0x2,
5353
MLX5_MODULE_STATUS_ERROR = 0x3,
54+
MLX5_MODULE_STATUS_DISABLED = 0x4,
5455
MLX5_MODULE_STATUS_NUM,
5556
};
5657

0 commit comments

Comments
 (0)