Skip to content

Commit 652ba7c

Browse files
Dotan BarakMukesh Kacker
authored andcommitted
mlx4_ib: Fix the SQ size of an RC QP to support masked atomic operation
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 <[email protected]> Reviewed-by: Eli Cohen <[email protected]> Signed-off-by: Vladimir Sokolovsky <[email protected]> (Ported from Mellanox OFED 2.4) Signed-off-by: Mukesh Kacker <[email protected]>
1 parent f2eb345 commit 652ba7c

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/mlx4

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/mlx4/qp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ static int send_wqe_overhead(enum mlx4_ib_qp_type type, u32 flags)
356356
sizeof (struct mlx4_wqe_raddr_seg);
357357
case MLX4_IB_QPT_RC:
358358
return sizeof (struct mlx4_wqe_ctrl_seg) +
359-
sizeof (struct mlx4_wqe_atomic_seg) +
359+
sizeof (struct mlx4_wqe_masked_atomic_seg) +
360360
sizeof (struct mlx4_wqe_raddr_seg);
361361
case MLX4_IB_QPT_SMI:
362362
case MLX4_IB_QPT_GSI:

0 commit comments

Comments
 (0)