]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit4196670be786d529ab7f6c18f5077141ce1b787e
tree3b6f5a807429babfe64e9ef40a139228afa55ab0
parent38dbfb59d1175ef458d006556061adeaa8751b72
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: 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