|
@@ -4203,6 +4203,10 @@ static int mlx5_ib_stage_caps_init(struct mlx5_ib_dev *dev)
|
|
INIT_LIST_HEAD(&dev->qp_list);
|
|
INIT_LIST_HEAD(&dev->qp_list);
|
|
spin_lock_init(&dev->reset_flow_resource_lock);
|
|
spin_lock_init(&dev->reset_flow_resource_lock);
|
|
|
|
|
|
|
|
+ if ((MLX5_CAP_GEN(dev->mdev, port_type) == MLX5_CAP_PORT_TYPE_ETH) &&
|
|
|
|
+ MLX5_CAP_GEN(dev->mdev, disable_local_lb))
|
|
|
|
+ mutex_init(&dev->lb_mutex);
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -4384,15 +4388,6 @@ static int mlx5_ib_stage_class_attr_init(struct mlx5_ib_dev *dev)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-static int mlx5_ib_stage_loopback_init(struct mlx5_ib_dev *dev)
|
|
|
|
-{
|
|
|
|
- if ((MLX5_CAP_GEN(dev->mdev, port_type) == MLX5_CAP_PORT_TYPE_ETH) &&
|
|
|
|
- MLX5_CAP_GEN(dev->mdev, disable_local_lb))
|
|
|
|
- mutex_init(&dev->lb_mutex);
|
|
|
|
-
|
|
|
|
- return 0;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
static void __mlx5_ib_remove(struct mlx5_ib_dev *dev,
|
|
static void __mlx5_ib_remove(struct mlx5_ib_dev *dev,
|
|
const struct mlx5_ib_profile *profile,
|
|
const struct mlx5_ib_profile *profile,
|
|
int stage)
|
|
int stage)
|
|
@@ -4481,9 +4476,6 @@ static const struct mlx5_ib_profile pf_profile = {
|
|
STAGE_CREATE(MLX5_IB_STAGE_CLASS_ATTR,
|
|
STAGE_CREATE(MLX5_IB_STAGE_CLASS_ATTR,
|
|
mlx5_ib_stage_class_attr_init,
|
|
mlx5_ib_stage_class_attr_init,
|
|
NULL),
|
|
NULL),
|
|
- STAGE_CREATE(MLX5_IB_STAGE_LOOPBACK,
|
|
|
|
- mlx5_ib_stage_loopback_init,
|
|
|
|
- NULL),
|
|
|
|
};
|
|
};
|
|
|
|
|
|
static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
|
|
static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
|