Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 647241ea authored by Majd Dibbiny's avatar Majd Dibbiny Committed by David S. Miller
Browse files

IB/mlx5: Don't create IB instance over Ethernet ports



Since we still don't have RoCE support in mlx5, avoid
creating IB driver instance over Ethernet ports.

Signed-off-by: default avatarMajd Dibbiny <majd@mellanox.com>
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1b5daf11
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -1353,6 +1353,10 @@ static void *mlx5_ib_add(struct mlx5_core_dev *mdev)
	int err;
	int err;
	int i;
	int i;


	/* don't create IB instance over Eth ports, no RoCE yet! */
	if (MLX5_CAP_GEN(mdev, port_type) == MLX5_CAP_PORT_TYPE_ETH)
		return NULL;

	printk_once(KERN_INFO "%s", mlx5_version);
	printk_once(KERN_INFO "%s", mlx5_version);


	dev = (struct mlx5_ib_dev *)ib_alloc_device(sizeof(*dev));
	dev = (struct mlx5_ib_dev *)ib_alloc_device(sizeof(*dev));