|
@@ -288,7 +288,9 @@ __be16 mlx5_get_roce_udp_sport(struct mlx5_ib_dev *dev, u8 port_num,
|
|
|
|
|
|
static int mlx5_use_mad_ifc(struct mlx5_ib_dev *dev)
|
|
static int mlx5_use_mad_ifc(struct mlx5_ib_dev *dev)
|
|
{
|
|
{
|
|
- return !MLX5_CAP_GEN(dev->mdev, ib_virt);
|
|
|
|
|
|
+ if (MLX5_CAP_GEN(dev->mdev, port_type) == MLX5_CAP_PORT_TYPE_IB)
|
|
|
|
+ return !MLX5_CAP_GEN(dev->mdev, ib_virt);
|
|
|
|
+ return 0;
|
|
}
|
|
}
|
|
|
|
|
|
enum {
|
|
enum {
|