diff options
author | Dotan Barak <dotanb@dev.mellanox.co.il> | 2012-08-23 16:09:03 +0200 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-10-01 05:33:08 +0200 |
commit | 46db567debb2abe7c0c03a1bd97891cbc1a2470b (patch) | |
tree | 54a9efa950d72016667c331d576ba87cf9c7fa16 /drivers/infiniband/hw/mlx4/qp.c | |
parent | Linux 3.6-rc7 (diff) | |
download | linux-46db567debb2abe7c0c03a1bd97891cbc1a2470b.tar.xz linux-46db567debb2abe7c0c03a1bd97891cbc1a2470b.zip |
IB/mlx4: Fill in sq_sig_type in query QP
Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/qp.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/qp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index f585eddef4b7..56e66a4c335c 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c @@ -2225,6 +2225,10 @@ done: if (qp->flags & MLX4_IB_QP_LSO) qp_init_attr->create_flags |= IB_QP_CREATE_IPOIB_UD_LSO; + qp_init_attr->sq_sig_type = + qp->sq_signal_bits == cpu_to_be32(MLX4_WQE_CTRL_CQ_UPDATE) ? + IB_SIGNAL_ALL_WR : IB_SIGNAL_REQ_WR; + out: mutex_unlock(&qp->mutex); return err; |