Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1206565ybi; Fri, 2 Aug 2019 11:07:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFXYJm5tiIXt7dgU/Dkt+hw+5Ko9mT9zhNWGq2GNPyYFQhZE9/pgqk9Vu1rmnWuqU/3HaD X-Received: by 2002:a17:902:bd06:: with SMTP id p6mr135899994pls.189.1564769275220; Fri, 02 Aug 2019 11:07:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564769275; cv=none; d=google.com; s=arc-20160816; b=iGJceI81bff4YNNr6lfbQvqa8Gaq/j3VfXQLHydWzBbGZxi4GaP6myfPlDFkpZWrF8 zkDwfqqCkdyhnN3k3CVCn3F0CswahID9+PHrYqqTYi5BNzW4qgZA350luxEqutH92r62 ubTrMRusPN1t6TFog/x9u9NSxfchbHwUSJIPlRnWZ6qmtti6rFj+ywQm9y2XwkHnImOS JJLjxPh+N1aIHmb9Hznaoaj/KZUMHxCE7nbpbRcQj2Hni0qMWJez+bg9uT+y7HXKPwxe N8ZD7LvCg6RoQUs2Daj7fO5kZFmPclirBUA0r+rFe/LjspuakYyQa8DroBROHipKyypJ 48rg== 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=VHrr7s2o/7Fk0JzIp3MYT6pHxCCIPLvd5kzwnzFSIVA=; b=OlFqEWthu98CXt9MSNrNtSz0+iTN6WS0BjO/AO25fV9PU57DLXEfXaHbXFTNdOMadW l6UvYv70GEfR/hcblAaffv+VEFY9RplQ7IPJ9oSZ3gj/c/DA7ArtU220OI98LYfn50no tcGhCbRsf8J6cMFxm9rebEESmUfRdCsa7ZzR26AiASp+KCEPaCC2dax4fSriHmfa7Hey fPUNuGron7wZNmnaTF6I1HvK5D8eDg2H5AzE8W3yUHZK2wLGwUPwvuGdyzL5nW0HQ6gN FSOTiN3vLvvbJQH1Gh7kpLpoI7Vac17ggNVMVQCZzCiMvgRjc4jnB2tjIeOJlqEpodtq j4Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=reMAv4ow; 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 l1si6967675pjq.17.2019.08.02.11.07.39; Fri, 02 Aug 2019 11:07:55 -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=reMAv4ow; 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 S2392182AbfHBJwK (ORCPT + 99 others); Fri, 2 Aug 2019 05:52:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:57586 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392162AbfHBJwG (ORCPT ); Fri, 2 Aug 2019 05:52:06 -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 65B7D2064A; Fri, 2 Aug 2019 09:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564739525; bh=NDzdtxxf5CTPkR4noOJDNwcJusSCkxEjRhMXSxze9aQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=reMAv4ow5mjvPZBg+iMEVKyBpKl3Z7a+ch0ovBMtAv/CsvOas5WeSct5D+TZwFOLk Y3YHbERDQKefAY2XcJZa643fkNDVCy8EtzM8MJ6vbFWOwjPZ7Zk3g9Rf3hqMVeWv6v oPUJHkboO07RE7BB2W2H25zmmrQ8Szq+jytUESak= 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.9 186/223] RDMA/i40iw: Set queue pair state when being queried Date: Fri, 2 Aug 2019 11:36:51 +0200 Message-Id: <20190802092249.575873998@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190802092238.692035242@linuxfoundation.org> References: <20190802092238.692035242@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 095912fb3201..c3d2400e36b9 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c @@ -812,6 +812,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