summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx5
diff options
context:
space:
mode:
authorEli Cohen2014-01-28 13:52:47 +0100
committerRoland Dreier2014-02-07 08:00:48 +0100
commit9e65dc371b5c8d7476c81353137efc13cc1bdabd (patch)
tree7c1b0d24cff259c2846b851cce5cd765232b4265 /drivers/infiniband/hw/mlx5
parentLinus 3.14-rc1 (diff)
downloadkernel-qcow2-linux-9e65dc371b5c8d7476c81353137efc13cc1bdabd.tar.gz
kernel-qcow2-linux-9e65dc371b5c8d7476c81353137efc13cc1bdabd.tar.xz
kernel-qcow2-linux-9e65dc371b5c8d7476c81353137efc13cc1bdabd.zip
IB/mlx5: Fix RC transport send queue overhead computation
Fix the RC QPs send queue overhead computation to take into account two additional segments in the WQE which are needed for registration operations. Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r--drivers/infiniband/hw/mlx5/qp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c
index ae37fb9bf262..492dc330e907 100644
--- a/drivers/infiniband/hw/mlx5/qp.c
+++ b/drivers/infiniband/hw/mlx5/qp.c
@@ -216,7 +216,9 @@ static int sq_overhead(enum ib_qp_type qp_type)
case IB_QPT_UC:
size += sizeof(struct mlx5_wqe_ctrl_seg) +
- sizeof(struct mlx5_wqe_raddr_seg);
+ sizeof(struct mlx5_wqe_raddr_seg) +
+ sizeof(struct mlx5_wqe_umr_ctrl_seg) +
+ sizeof(struct mlx5_mkey_seg);
break;
case IB_QPT_UD: