aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mlx4
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/hw/mlx4')
-rw-r--r--drivers/infiniband/hw/mlx4/qp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c
index 8fabe0da3234..95d4a9d6994c 100644
--- a/drivers/infiniband/hw/mlx4/qp.c
+++ b/drivers/infiniband/hw/mlx4/qp.c
@@ -277,8 +277,8 @@ static int set_kernel_sq_size(struct mlx4_ib_dev *dev, struct ib_qp_cap *cap,
277 277
278 cap->max_send_wr = qp->sq.max_post = qp->sq.wqe_cnt - qp->sq_spare_wqes; 278 cap->max_send_wr = qp->sq.max_post = qp->sq.wqe_cnt - qp->sq_spare_wqes;
279 cap->max_send_sge = qp->sq.max_gs; 279 cap->max_send_sge = qp->sq.max_gs;
280 cap->max_inline_data = (1 << qp->sq.wqe_shift) - send_wqe_overhead(type) - 280 /* We don't support inline sends for kernel QPs (yet) */
281 sizeof (struct mlx4_wqe_inline_seg); 281 cap->max_inline_data = 0;
282 282
283 return 0; 283 return 0;
284} 284}
@@ -390,9 +390,6 @@ static int create_qp_common(struct mlx4_ib_dev *dev, struct ib_pd *pd,
390 err = -ENOMEM; 390 err = -ENOMEM;
391 goto err_wrid; 391 goto err_wrid;
392 } 392 }
393
394 /* We don't support inline sends for kernel QPs (yet) */
395 init_attr->cap.max_inline_data = 0;
396 } 393 }
397 394
398 err = mlx4_qp_alloc(dev->dev, sqpn, &qp->mqp); 395 err = mlx4_qp_alloc(dev->dev, sqpn, &qp->mqp);