[ofa-general] [PATCH] mlx4: Set sq_sig_type and qp_type in qp_init_attr struct
Vincent Rizza
vinnie at sgi.com
Sun Oct 19 21:16:22 PDT 2008
Set correct sq_sig_type and qp_type in qp_init_attr.
Signed-off-by: Vincent Rizza <vinnie at sgi.com>
Signed-off-by: Brett Grandbois <brettg at sgi.com>
Signed-off-by: Greg Banks <gnb at sgi.com>
Signed-off-by: Max Matveev <makc at sgi.com>
Signed-off-by: Ken Sandars <ksandars at sgi.com>
---
drivers/infiniband/hw/mlx4/qp.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c
index 9559248..37fc05d 100644
--- a/drivers/infiniband/hw/mlx4/qp.c
+++ b/drivers/infiniband/hw/mlx4/qp.c
@@ -1910,6 +1910,13 @@ done:
qp_init_attr->cap = qp_attr->cap;
+ if (qp->sq_signal_bits & MLX4_WQE_CTRL_CQ_UPDATE)
+ qp_init_attr->sq_sig_type = IB_SIGNAL_ALL_WR;
+ else
+ qp_init_attr->sq_sig_type = IB_SIGNAL_REQ_WR;
+
+ qp_init_attr->qp_type = qp->ibqp.qp_type;
+
qp_init_attr->create_flags = 0;
if (qp->flags & MLX4_IB_QP_BLOCK_MULTICAST_LOOPBACK)
qp_init_attr->create_flags |= IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK;
More information about the general
mailing list