]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mlx4_ib: Fix the SQ size of an RC QP to support masked atomic operation
authorDotan Barak <dotanb@dev.mellanox.co.il>
Wed, 11 Apr 2012 09:54:05 +0000 (12:54 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:38:08 +0000 (14:38 -0700)
When calculating the required size of an RC QP send queue,
leave enough space for masked atomic operation (which requires
more space than "regular" atomic operation).

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Reviewed-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/hw/mlx4/qp.c

index 02fc91c6802787e0f8f723417d9c7655b6123d3a..697fc31bc42cfe75c80301ca0f6a990f0dd5fe22 100644 (file)
@@ -356,7 +356,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: