]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc8ba8632420479d2d15c3d1ff668e042bd663acf
tree3b6f5a807429babfe64e9ef40a139228afa55ab0
parent6333ef0a6d756a72c48035feae2450b64f0372e4
IB/mlx4: Don't allocate range of steerable UD QPs for Ethernet-only device

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: 2bca44e6636f ("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