Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3547806pxb; Mon, 24 Jan 2022 11:57:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzulLtSGpSI74WcWU4SX/KpB6P96nqB4jCuksXwBtWuXHPxvDLTmzWW6jUwrCyvtNAYh8dj X-Received: by 2002:a17:90a:440d:: with SMTP id s13mr3468665pjg.86.1643054267641; Mon, 24 Jan 2022 11:57:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054267; cv=none; d=google.com; s=arc-20160816; b=ydyXfQItf0GZDYKWWBRq9q4d1oKAz0Mtg2w6+l8ToYzoJcCByaU3td1mY/9E+KtjxQ kIsZhzjLgMoNS3V1ql+2jTnSbse5U7HlFcPiOykzh2jeIS/EjAqRLR+8wAPgo9DRZ1Vz waExWSIQUS6y/yjih9nCs9etxFyVkL1eWkfbpNkC6/lDqOVZSIaoBpuoRBOIIr8CPl8B pShgWYu+3NcoIYG8ngDbndJDeX7Cint2iCX+FRKoqF0x2UDXBG7afF1X2Geuuz2YATzC wW+uypTNo4nHi/u6o4UaypPMMwRCQQJTVThBjyyue2I7C5uZDNxLpcY/2F4nqq1yd/Z/ 47CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=eQ0aM5UDW/ykUsm1OhK8A1UKwvLzc4X0hvA9A8wuT+s=; b=nNzMPnlfeHEplMuFsb+6yf8vWraanqmpsQbxDqJLnelvVQaJQofiIUh6Gh5+R6YIM8 pWpmHC5MnDvVv7cfUYtIgwlOsStDhgUsMVdkr95To5a9yFoOd5HiY3O8vp2f3O13/USw QU/IL+XcT8Nl+1iKtS9twvP55uMwhylbM3BH3E+/O2VAe/9MBktz2FTAcWhcfq5BQpAB WsW8cFYLVXqsaayoBmFLfr7ztDOUfg0iLOShAuIQ4YLASsHCrp7721oAHjFkR0iA6hl3 jQ5zbrbL12SLad/pLdtteH7Nx7ttpCHPOWSPhnqPaxU3eD4OrzAK+MzDMxQsfimYMFzL 6nCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eKYDSkeU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y143si12650101pfb.63.2022.01.24.11.57.35; Mon, 24 Jan 2022 11:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=eKYDSkeU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343904AbiAXSyO (ORCPT + 99 others); Mon, 24 Jan 2022 13:54:14 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:51594 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245665AbiAXSw3 (ORCPT ); Mon, 24 Jan 2022 13:52:29 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BAFED614DF; Mon, 24 Jan 2022 18:52:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83D0EC340E5; Mon, 24 Jan 2022 18:52:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050348; bh=eiYg0iM2iJ3C43B6e4lYIqT+CDmMTJ/3boG0NTD4FaI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eKYDSkeUscFojejx/b4ViOJ1bFrFE7TuVfrH1GHK3c3XE+RR8mzG8oafhfucdhRCd MlsUDElLo6Tz/GeUWbV7xW9Xtp+MOzgSSngVFnJtfgR6XDYZWsU5qKxPD3csCmnx1d pirIvmXJlk1z2dPSu68gxtAXpJeyZyNsgctXMDLo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kamal Heib , Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.4 056/114] RDMA/cxgb4: Set queue pair state when being queried Date: Mon, 24 Jan 2022 19:42:31 +0100 Message-Id: <20220124183928.833978329@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183927.095545464@linuxfoundation.org> References: <20220124183927.095545464@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kamal Heib [ Upstream commit e375b9c92985e409c4bb95dd43d34915ea7f5e28 ] The API for ib_query_qp requires the driver to set cur_qp_state on return, add the missing set. Fixes: 67bbc05512d8 ("RDMA/cxgb4: Add query_qp support") Link: https://lore.kernel.org/r/20211220152530.60399-1-kamalheib1@gmail.com Signed-off-by: Kamal Heib Reviewed-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/cxgb4/qp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 67e4002bd776e..31a8119685114 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -1896,6 +1896,7 @@ int c4iw_ib_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, memset(attr, 0, sizeof *attr); memset(init_attr, 0, sizeof *init_attr); attr->qp_state = to_ib_qp_state(qhp->attr.state); + attr->cur_qp_state = to_ib_qp_state(qhp->attr.state); init_attr->cap.max_send_wr = qhp->attr.sq_num_entries; init_attr->cap.max_recv_wr = qhp->attr.rq_num_entries; init_attr->cap.max_send_sge = qhp->attr.sq_max_sges; -- 2.34.1