diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2014-01-28 14:52:47 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-02-06 23:00:48 -0800 |
commit | 9e65dc371b5c8d7476c81353137efc13cc1bdabd (patch) | |
tree | 7c1b0d24cff259c2846b851cce5cd765232b4265 /drivers/infiniband/hw/mlx5/qp.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | op-kernel-dev-9e65dc371b5c8d7476c81353137efc13cc1bdabd.zip op-kernel-dev-9e65dc371b5c8d7476c81353137efc13cc1bdabd.tar.gz |
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/qp.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/qp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/mlx5/qp.c b/drivers/infiniband/hw/mlx5/qp.c index ae37fb9..492dc33 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: |