Skip to content

Commit

Permalink
mlx4_ib: disable SRIOV mode for IB ports (not yet supported)
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jack Morgenstein authored and David S. Miller committed Dec 13, 2011
1 parent c82e9aa commit 8e59d25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/infiniband/hw/mlx4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,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++;

Expand Down

0 comments on commit 8e59d25

Please sign in to comment.