From patchwork Tue Aug 2 12:34:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Apfelbaum X-Patchwork-Id: 1029352 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p72CYjM8023825 for ; Tue, 2 Aug 2011 12:34:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754388Ab1HBMep (ORCPT ); Tue, 2 Aug 2011 08:34:45 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:58711 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754347Ab1HBMeo (ORCPT ); Tue, 2 Aug 2011 08:34:44 -0400 Received: by wwe5 with SMTP id 5so6682986wwe.1 for ; Tue, 02 Aug 2011 05:34:43 -0700 (PDT) Received: by 10.227.197.141 with SMTP id ek13mr7387066wbb.49.1312288482830; Tue, 02 Aug 2011 05:34:42 -0700 (PDT) Received: from vnc7.lab.mtl.com ([82.166.227.17]) by mx.google.com with ESMTPS id fc2sm4983413wbb.35.2011.08.02.05.34.41 (version=SSLv3 cipher=OTHER); Tue, 02 Aug 2011 05:34:42 -0700 (PDT) From: Marcel Apfelbaum To: roland@kernel.org Subject: [PATCH] mlx4: Fix the attribute sq_sig_type value in query qp Date: Tue, 2 Aug 2011 15:34:39 +0300 User-Agent: KMail/1.9.4 Cc: linux-rdma@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201108021534.39846.marcela@dev.mellanox.co.il> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Tue, 02 Aug 2011 12:34:45 +0000 (UTC) Add a missing attribute in query QP over mlx4 device. Signed-off-by: Marcel Apfelbaum Reviewed-by: Jack Morgenstein --- drivers/infiniband/hw/mlx4/qp.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/hw/mlx4/qp.c b/drivers/infiniband/hw/mlx4/qp.c index 2ec1a60..b087a8f 100644 --- a/drivers/infiniband/hw/mlx4/qp.c +++ b/drivers/infiniband/hw/mlx4/qp.c @@ -2603,6 +2603,9 @@ 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;