]> 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)
commit3ab2e12dbe9374ef6ecee2c9f88bbbe65593df1c
tree3b6f5a807429babfe64e9ef40a139228afa55ab0
parented4c0e42e851d5178cd0d1dc05de408325576e1c
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: 66c05ace03fb ("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