diff options
author | Haggai Eran <haggaie@mellanox.com> | 2016-02-29 08:45:11 -0500 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-01 11:04:07 -0500 |
commit | ebe6ccc53ff06a3782b95547eecb393222de057f (patch) | |
tree | a19cd3a74a75ac33d0b790fcc13e9907198abcba | |
parent | 83cae2aff53960ab6cf5bb82654201ce43b77fb6 (diff) |
IB/mlx5: Eliminate GSI RX QP's send buffers
Now that the transmission of GSI MADs is done with the special transmission
QPs, eliminate the send buffers in the GSI receive QP.
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/hw/mlx5/gsi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/gsi.c b/drivers/infiniband/hw/mlx5/gsi.c index 938f6ddca4b3..53e03c8ede79 100644 --- a/drivers/infiniband/hw/mlx5/gsi.c +++ b/drivers/infiniband/hw/mlx5/gsi.c | |||
@@ -187,6 +187,11 @@ struct ib_qp *mlx5_ib_gsi_create_qp(struct ib_pd *pd, | |||
187 | 187 | ||
188 | hw_init_attr.qp_type = MLX5_IB_QPT_HW_GSI; | 188 | hw_init_attr.qp_type = MLX5_IB_QPT_HW_GSI; |
189 | hw_init_attr.send_cq = gsi->cq; | 189 | hw_init_attr.send_cq = gsi->cq; |
190 | if (num_qps) { | ||
191 | hw_init_attr.cap.max_send_wr = 0; | ||
192 | hw_init_attr.cap.max_send_sge = 0; | ||
193 | hw_init_attr.cap.max_inline_data = 0; | ||
194 | } | ||
190 | gsi->rx_qp = ib_create_qp(pd, &hw_init_attr); | 195 | gsi->rx_qp = ib_create_qp(pd, &hw_init_attr); |
191 | if (IS_ERR(gsi->rx_qp)) { | 196 | if (IS_ERR(gsi->rx_qp)) { |
192 | mlx5_ib_warn(dev, "unable to create hardware GSI QP. error %ld\n", | 197 | mlx5_ib_warn(dev, "unable to create hardware GSI QP. error %ld\n", |