diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2011-12-12 23:15:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-13 13:56:07 -0500 |
commit | 8e59d254feb3826230d19fb643691c89eabd71f8 (patch) | |
tree | 117964e91957e5bf1b96933a5246fd76c2fd5183 /drivers | |
parent | c82e9aa0a8bcf7a1643ccb71678bab57f3cb4bc6 (diff) |
mlx4_ib: disable SRIOV mode for IB ports (not yet supported)
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 34f8a5d9da7..b8279deb614 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c | |||
@@ -1075,6 +1075,11 @@ static void *mlx4_ib_add(struct mlx4_dev *dev) | |||
1075 | 1075 | ||
1076 | printk_once(KERN_INFO "%s", mlx4_ib_version); | 1076 | printk_once(KERN_INFO "%s", mlx4_ib_version); |
1077 | 1077 | ||
1078 | if (mlx4_is_mfunc(dev)) { | ||
1079 | printk(KERN_WARNING "IB not yet supported in SRIOV\n"); | ||
1080 | return NULL; | ||
1081 | } | ||
1082 | |||
1078 | mlx4_foreach_ib_transport_port(i, dev) | 1083 | mlx4_foreach_ib_transport_port(i, dev) |
1079 | num_ports++; | 1084 | num_ports++; |
1080 | 1085 | ||