Patchwork [net-next,V0,13/21] mlx4_ib: disable SRIOV mode for IB ports (not yet supported)

login
register
mail settings
Submitter Yevgeny Petrilin
Date Dec. 2, 2011, 10:18 a.m.
Message ID <4ED8A5E6.2050908@mellanox.co.il>
Download mbox | patch
Permalink /patch/128841/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Yevgeny Petrilin - Dec. 2, 2011, 10:18 a.m.
From: Jack Morgenstein <jackm@dev.mellanox.co.il>

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
---
 drivers/infiniband/hw/mlx4/main.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c
index 35b876e..ee9c41b 100644
--- a/drivers/infiniband/hw/mlx4/main.c
+++ b/drivers/infiniband/hw/mlx4/main.c
@@ -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++;