IB/mlx4: Don't allocate range of steerable UD QPs for Ethernet-only device
authorMatan Barak <matanb@mellanox.com>
Sun, 2 Feb 2014 15:06:47 +0000 (17:06 +0200)
committerRoland Dreier <roland@purestorage.com>
Thu, 13 Feb 2014 17:00:18 +0000 (09:00 -0800)
When the device has only Ethernet ports, don't try to allocate range
of steerable UD QPs since they aren't needed.  This fixes an issue
where mlx4 VFs tried to allocate a range of UD steerable QPs, but
failed to do so.

Fixes: c1c98501121e ("IB/mlx4: Add support for steerable IB UD QPs")
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/mlx4/main.c

Simple merge