Skip to content

Commit

Permalink
IB/mlx4: Fix the SQ size of an RC QP
Browse files Browse the repository at this point in the history
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: 6fa8f71 ("IB/mlx4: Add support for masked atomic operations")
Signed-off-by: Yishai Hadas <[email protected]>
Reviewed-by: Jack Morgenstein <[email protected]>
Reviewed-by: Eran Ben Elisha <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
  • Loading branch information
yishaih authored and dledford committed Jun 23, 2016
1 parent 00bf534 commit f2940e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/mlx4/qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f2940e2

Please sign in to comment.