summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2016-06-22 17:27:28 +0300
committerDoug Ledford <dledford@redhat.com>2016-06-23 10:06:54 -0400
commitf2940e2c76bb554a7fbdd28ca5b90904117a9e96 (patch)
tree0228b00dfcc082dfc8cc91aec69ca266193c52a5 /drivers/infiniband/hw
parent00bf534fce23048aa0e6fd8dbceedf097ee65508 (diff)
downloadop-kernel-dev-f2940e2c76bb554a7fbdd28ca5b90904117a9e96.zip
op-kernel-dev-f2940e2c76bb554a7fbdd28ca5b90904117a9e96.tar.gz
IB/mlx4: Fix the SQ size of an RC QP
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>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r--drivers/infiniband/hw/mlx4/qp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c
index 81b0e1fb..5196117 100644
--- a/drivers/infiniband/hw/mlx4/qp.c
+++ b/drivers/infiniband/hw/mlx4/qp.c
@@ -362,7 +362,7 @@ static int send_wqe_overhead(enum mlx4_ib_qp_type type, u32 flags)
sizeof (struct mlx4_wqe_raddr_seg);
case MLX4_IB_QPT_RC:
return sizeof (struct mlx4_wqe_ctrl_seg) +
- sizeof (struct mlx4_wqe_atomic_seg) +
+ sizeof (struct mlx4_wqe_masked_atomic_seg) +
sizeof (struct mlx4_wqe_raddr_seg);
case MLX4_IB_QPT_SMI:
case MLX4_IB_QPT_GSI:
OpenPOWER on IntegriCloud