Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3817416ybi; Mon, 29 Jul 2019 13:12:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmywCpt2g9ZYR8lOt83dP25K+r+HFomeuu5dc2j9z6QJpwsvBDyz8A5BU2VtRyp/iRGHKI X-Received: by 2002:a17:902:ba8e:: with SMTP id k14mr111566635pls.256.1564431147111; Mon, 29 Jul 2019 13:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564431147; cv=none; d=google.com; s=arc-20160816; b=jQv1sIVMlF9+w3wvTbntyfj02wggdCojwlFMZr3JssLZPUXYfpDpLoYi/hg6LU9KkC cOj+R0so0RdNLpxSlIVu33kEngTVwa94/xpqOxemLdEjbccYdM0YNIxM7G5mV5ovEPQV vgg4uHD/C3iBtJiZ8CDIYlaErQaiW8xI1TkRRsLXEcAdS2ENyhwGBktFYzIaPwKCvMO8 CKVtNAzwRxYbO6W+JVP43h8HkYBX1326Dqanlsf6pwtCoX/da7Cvd/rpod7cUCciYa++ 0wdfhG8eipYyYtpPLf5/mUF9SOs9gqiWPpGWve5yWSkarEJJk0jksyR1EP2Ql9tgjCVA XIAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=e9VSTVeJ0um1qT2qrDYwk0Yfk6eYzUoqdeumKTR7oMg=; b=qJ9IK/XhfZwVUJkj2aX3d8EhCEgBuu94W2wGJKRDwxPZfnD3cUMPm8H0kzpPNsGJad jjzKwCAzA5jJYGHg4+lkD26l6ZgqSTC3dz7o40rZqpIaE301PaSTiavtiiuIZ7C9khb8 kUARWhw9RHqahfVf5BbJn9GBOI+NSKD/pXjcUJDU8OaKAu7MHMcxCkWUbIO6k9k9dR3d wCagLCEJqgI82MY1FTPMD2Ivaprs4QCrI2J+LCxy92r0TZn/Mh1FwY17zEk/FLVmqktM 6+wTVTYN70qodUxMCmcEe89/CvFZI7jlHml920HMeUD+lg1Z/X4soHkLTwUXSgLbHiSS FuNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wfsfuO5C; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 80si30511366pgf.5.2019.07.29.13.12.12; Mon, 29 Jul 2019 13:12:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wfsfuO5C; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388627AbfG2Tg5 (ORCPT + 99 others); Mon, 29 Jul 2019 15:36:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:51392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388620AbfG2Tgy (ORCPT ); Mon, 29 Jul 2019 15:36:54 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D4E42171F; Mon, 29 Jul 2019 19:36:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429013; bh=5oj/X34q6B8ifWGZud+UKCY0jSzA/bqbBM7DcMY/XYg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wfsfuO5CwBTxu0lCsSENNIL1Uy9wDW7XtXl1llEblA4T8g8Eqk/KEKBLJpesCqvXt A3Yf6kAOhoAPV7FGoYDd1bgESFWbaYNZJRBhOd37jv7im+djq9oYGfoqV+FGZ63rv+ OqhjEGncxitL8KVMOCzfv9c7VfFYV+hJGSgijXiM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Changcheng Liu , Shiraz Saleem , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.14 256/293] RDMA/i40iw: Set queue pair state when being queried Date: Mon, 29 Jul 2019 21:22:27 +0200 Message-Id: <20190729190844.045542631@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 2e67e775845373905d2c2aecb9062c2c4352a535 ] The API for ib_query_qp requires the driver to set qp_state and cur_qp_state on return, add the missing sets. Fixes: d37498417947 ("i40iw: add files for iwarp interface") Signed-off-by: Changcheng Liu Acked-by: Shiraz Saleem Reviewed-by: Jason Gunthorpe Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c index c1021b4afb41..57bfe4808247 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c @@ -821,6 +821,8 @@ static int i40iw_query_qp(struct ib_qp *ibqp, struct i40iw_qp *iwqp = to_iwqp(ibqp); struct i40iw_sc_qp *qp = &iwqp->sc_qp; + attr->qp_state = iwqp->ibqp_state; + attr->cur_qp_state = attr->qp_state; attr->qp_access_flags = 0; attr->cap.max_send_wr = qp->qp_uk.sq_size; attr->cap.max_recv_wr = qp->qp_uk.rq_size; -- 2.20.1