aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2014-03-12 11:16:32 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-12 16:12:42 -0400
commit7855bff42ea9938a0853321256f4c8ce3628aa73 (patch)
tree0ada2923bbd22b0e2adf2068cdc2acb25a1cd5ad /drivers/net/ethernet/mellanox/mlx4
parent2a2083f7f3568c0192daa6ac0e6fa35d953f47bd (diff)
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: b046ffe 'net/mlx4_core: Load higher level modules according to ports type' Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c
index 30a08a60f059..936c15364739 100644
--- a/drivers/net/ethernet/mellanox/mlx4/main.c
+++ b/drivers/net/ethernet/mellanox/mlx4/main.c
@@ -751,7 +751,7 @@ static void mlx4_request_modules(struct mlx4_dev *dev)
751 has_eth_port = true; 751 has_eth_port = true;
752 } 752 }
753 753
754 if (has_ib_port) 754 if (has_ib_port || (dev->caps.flags & MLX4_DEV_CAP_FLAG_IBOE))
755 request_module_nowait(IB_DRV_NAME); 755 request_module_nowait(IB_DRV_NAME);
756 if (has_eth_port) 756 if (has_eth_port)
757 request_module_nowait(EN_DRV_NAME); 757 request_module_nowait(EN_DRV_NAME);