Skip to contentSkip to conversation

mlx4_ib: disable SRIOV mode for IB ports (not yet supported)

PATCH In review Yevgeny Petrilin 1 participant 1 message Dec 2, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 13/21 mlx4_ib: disable SRIOV mode for IB ports (not yet supported)

From: Jack Morgenstein <[email protected]>

---
 drivers/infiniband/hw/mlx4/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/infiniband/hw/mlx4/main.c +5 -0
index 35b876e..ee9c41b 100644
@@ -1074,6 +1074,11 @@ static void *mlx4_ib_add(struct mlx4_dev *dev)
 
 	printk_once(KERN_INFO "%s", mlx4_ib_version);
 
+	if (mlx4_is_mfunc(dev)) {
+		printk(KERN_WARNING "IB not yet supported in SRIOV\n");
+		return NULL;
+	}
+
 	mlx4_foreach_ib_transport_port(i, dev)
 		num_ports++;
 
Signature · 10 lines
1.7.7





--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html