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

Commit 7855bff4 authored by Or Gerlitz's avatar Or Gerlitz Committed by David S. Miller
Browse files

net/mlx4_core: Load the IB driver when the device supports IBoE



When checking what protocol drivers to load, the IB driver should be
requested also over Ethernet ports, if the device supports IBoE (RoCE).

Fixes: b046ffe5 'net/mlx4_core: Load higher level modules according to ports type'
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2a2083f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -751,7 +751,7 @@ static void mlx4_request_modules(struct mlx4_dev *dev)
			has_eth_port = true;
	}

	if (has_ib_port)
	if (has_ib_port || (dev->caps.flags & MLX4_DEV_CAP_FLAG_IBOE))
		request_module_nowait(IB_DRV_NAME);
	if (has_eth_port)
		request_module_nowait(EN_DRV_NAME);