Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3978356pxb; Tue, 25 Jan 2022 00:30:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCIJN56JQCvyUa23lITnkMNUhxYaubCB/qik86ObZsfqd45tQn4P3PgtlDRHAwSjbp7oGx X-Received: by 2002:a17:906:478c:: with SMTP id cw12mr3476270ejc.214.1643099416822; Tue, 25 Jan 2022 00:30:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099416; cv=none; d=google.com; s=arc-20160816; b=jQR2W4nvXm7ueIZ0sI9Iquq0FB8BHeV/BcxLxfn7bCXEXpbcElsai9nRlJwcEtZoyP XUbCr80H6CvV95rBPyinwZG83VyLVJlmuE8zBXN/xnML2FjDtwcKKOnv8s/qF2sdPU/2 1RMPA6NsHiwcsInfu8HxsqAwjH+YGDHoVExZGZd4zzmdNNuzA6R3K4GmDLjYtDC6Qhoj LjMNx3NNy8qfckuq0/vKiiKZIBjZptAoaoKce+JnbOYuODZZv0KpWbWRyelHMc7jAmfN KYWmVFboWimPB6vfGJG1gJKAsPm4YU6bTivG0MFpqWHwVFvD8kM9C+Av9safypt8jM5w RIKQ== 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=NMrFE0FIxpNca9OW5hBpcw+xIJDS9lWRMJ6pfBIAWNw=; b=ZzCa1edxogTr40sPIOOxqzPqzY/cQobsGq6hfcpuMdZSYNhFHi6ZqjHFkh2Uq0IVBn K2YBxR4Kv+CtOFeTAYx32TK01gce3U4UKFxhhXEMlzAAS9S4Arcpf/0B/4YIF/50h/Dy U5qOoELyj8BkIlwbM90lf8MwRvcDh01HsT3G2w5T43p1ugEinsBE6qnTOcwn5Sxz43Bk orUAqJvWawV3VLZgFpmJm/pSVzxzxLKZMV+r4tskYALXuPoIXvJtIzowoEfvQLn0JZI/ 1+dmzhWF/71xFzVrE2PiGjm2rUSGjDtPuXnJMG9TiQb3tn8CrTbE/L+igYuHZ1a5J9HY 7P3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=h0wEj730; 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 e27si9908604ejl.129.2022.01.25.00.29.52; Tue, 25 Jan 2022 00:30:16 -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=h0wEj730; 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 S3409130AbiAYCiB (ORCPT + 99 others); Mon, 24 Jan 2022 21:38:01 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:37254 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350414AbiAXUcB (ORCPT ); Mon, 24 Jan 2022 15:32:01 -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 ams.source.kernel.org (Postfix) with ESMTPS id 44F6DB815BA; Mon, 24 Jan 2022 20:32:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53D91C340EA; Mon, 24 Jan 2022 20:31:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643056319; bh=Slr51+xyY5i5YjPnVEH/v3kjhkarQhm8KYwpq5C3Fao=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h0wEj7305d/Yv8sjxx8zmfB941sp2U7/DcJ5Mv8Zl+KNmvG+07Kbd4UjuZTapPRle dU/IHASoivBfU6gQudOeoHwKkaGVwJMIVllTLHuzX2IHVHmzh7a70QJXuYPDjtp0o8 fqNmyUrzn9PT2NmTDbJDtr7Ul//eBYCB2NWekNO0= 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 5.15 445/846] RDMA/cxgb4: Set queue pair state when being queried Date: Mon, 24 Jan 2022 19:39:22 +0100 Message-Id: <20220124184116.332558445@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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 d20b4ef2c853d..ffbd9a89981e7 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -2460,6 +2460,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