|
@@ -2311,14 +2311,14 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context,
|
|
|
{
|
|
|
struct mlx5_ib_dev *ibdev = (struct mlx5_ib_dev *)context;
|
|
|
struct ib_event ibev;
|
|
|
-
|
|
|
+ bool fatal = false;
|
|
|
u8 port = 0;
|
|
|
|
|
|
switch (event) {
|
|
|
case MLX5_DEV_EVENT_SYS_ERROR:
|
|
|
- ibdev->ib_active = false;
|
|
|
ibev.event = IB_EVENT_DEVICE_FATAL;
|
|
|
mlx5_ib_handle_internal_error(ibdev);
|
|
|
+ fatal = true;
|
|
|
break;
|
|
|
|
|
|
case MLX5_DEV_EVENT_PORT_UP:
|
|
@@ -2370,6 +2370,9 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context,
|
|
|
|
|
|
if (ibdev->ib_active)
|
|
|
ib_dispatch_event(&ibev);
|
|
|
+
|
|
|
+ if (fatal)
|
|
|
+ ibdev->ib_active = false;
|
|
|
}
|
|
|
|
|
|
static void get_ext_port_caps(struct mlx5_ib_dev *dev)
|