aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2012-08-03 04:40:55 -0400
committerRoland Dreier <roland@purestorage.com>2012-09-30 23:33:42 -0400
commit026149cbaada391d98f1cbec47c488cb548f753a (patch)
tree7996c6907496c5af0770aaaaa78a5fc851443789 /drivers/infiniband
parent992e8e6e8781b71fd475bd1fd0555da7dba59966 (diff)
mlx4: Activate SR-IOV mode for IB
Remove the error returns for IB ports from mlx4_ib_add, mlx4_INIT_PORT_wrapper, and mlx4_CLOSE_PORT_wrapper. Currently, SRIOV is supported only for devices for which the link layer is IB on all ports; RoCE support will be added later. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/mlx4/main.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index 46303b209ce..e849347ef99 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -1293,11 +1293,15 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
1293 1293
1294 pr_info_once("%s", mlx4_ib_version); 1294 pr_info_once("%s", mlx4_ib_version);
1295 1295
1296 if (mlx4_is_mfunc(dev)) { 1296 mlx4_foreach_non_ib_transport_port(i, dev)
1297 pr_warn("IB not yet supported in SRIOV\n"); 1297 num_ports++;
1298
1299 if (mlx4_is_mfunc(dev) && num_ports) {
1300 dev_err(&dev->pdev->dev, "RoCE is not supported over SRIOV as yet\n");
1298 return NULL; 1301 return NULL;
1299 } 1302 }
1300 1303
1304 num_ports = 0;
1301 mlx4_foreach_ib_transport_port(i, dev) 1305 mlx4_foreach_ib_transport_port(i, dev)
1302 num_ports++; 1306 num_ports++;
1303 1307