]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/mlx4: Fix the SQ size of an RC QP
authorYishai Hadas <yishaih@mellanox.com>
Wed, 22 Jun 2016 14:27:28 +0000 (17:27 +0300)
committerJiri Slaby <jslaby@suse.cz>
Fri, 19 Aug 2016 07:51:23 +0000 (09:51 +0200)
commit5f858e6227cb9d4e41bca39a8bef70f346521ab4
treeb8aaddb702dcfd486f700e741456a59b8aad8d01
parent15493c1eeeff03443617a13fa772c8661fea6b62
IB/mlx4: Fix the SQ size of an RC QP

commit f2940e2c76bb554a7fbdd28ca5b90904117a9e96 upstream.

When calculating the required size of an RC QP send queue, leave
enough space for masked atomic operations, which require more space than
"regular" atomic operation.

Fixes: 6fa8f719844b ("IB/mlx4: Add support for masked atomic operations")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Jack Morgenstein <jackm@mellanox.co.il>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/infiniband/hw/mlx4/qp.c