Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9042273pxu; Mon, 28 Dec 2020 05:13:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjoC40IlaN7P7KZ66QUAde+x+cW5D24rL1hhip0yxRASZp3vlKINN9/4wygr3FKB9vxZmN X-Received: by 2002:aa7:c652:: with SMTP id z18mr40643213edr.60.1609161196710; Mon, 28 Dec 2020 05:13:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609161196; cv=none; d=google.com; s=arc-20160816; b=gTiP9S8xAQjcmkqDtvz9e4aZ2aNLExtRKGq1il0Q4n9sIpSbkxmWBw2eDL3y8vOJ21 OUxYkE3myD0LGd9dNgcJyPhdW0muJKgr4IGVAKQW+2na9VRokxo25I+T3Ynda36RgPdT GORh6HzfUhkabIezoFa423MpT3hyuYJRGXEO3qsgDbtAr+35Lj/SHVSOBwwvxqNX3E8M fgzGqXc5Po219M06LXpHxKCUDZV7+/7ifiVZx2OOg0gL/4CtqzMk38Nbdq/ECRFuRpRB xiibUIpqgEQA6okSAYLCOLUeuFPSCNIi9PXklZrYdZKogGwZVEWvPNTrQ8sBKDMG17au F/ow== 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=UqoTinWiZ8WDNw0aIPGyv6XaLNIuOZj29p8pMfrtQkI=; b=NQU3DWTV3SA6ti70wAQAyJmPQlYqJ8UNwCUbc2ezdqsb7PsIycVGZjen+AvSEOfHjV XIfLlT5IalZzjl7aO2femH0/Rz+U2dBNkNdJsS7mZWT0s9NBf/E81iuNkDOhgy81Ved/ jYMc60ElmDBKbDYaK1NF4qUL7/iYupISvdtWODHHsS/4G+8nwccTtl2JoIl3SJaAIBbN J21gwpIi1TVfUxMtCjK+oBcXK2Ht/612CT79q5Z4aTmNC40MhW1Y/Bmz+Vg1Ijr1pQhx ZyH/lhA64GrrKcVQ2A5WqaDEzXPD08kviQgzW2kPVZ+KXbrmbsJ3XWF53lhc8+JXS/dj X0DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r27uuiAU; 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 a13si20806709edb.419.2020.12.28.05.12.54; Mon, 28 Dec 2020 05:13: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=r27uuiAU; 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 S1731451AbgL1NKr (ORCPT + 99 others); Mon, 28 Dec 2020 08:10:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:38456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731447AbgL1NKq (ORCPT ); Mon, 28 Dec 2020 08:10:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 397B621D94; Mon, 28 Dec 2020 13:10:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161005; bh=JkZOmcCqO+Q/QpBu1t9axmGuSDVFeQ+pf9AU+6gf4iU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r27uuiAUrB9B9ZKKI5YycIPbXjjXM3NoahmQ4PByxpehZraoWKmk9AaFBZJtkR6D/ gef6pCXOUQG9+PFFsTUhtzCriV2QGczxp6lCvMjsmGdXSrfNWrrH0jXAfg05jH5cds dVhY82CUyBUkHA6Wu1ttZ8974EsXjB2qHsebW+/Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kamal Heib , Selvin Xavier , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.14 068/242] RDMA/bnxt_re: Set queue pair state when being queried Date: Mon, 28 Dec 2020 13:47:53 +0100 Message-Id: <20201228124908.032215806@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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 53839b51a7671eeb3fb44d479d541cf3a0f2dd45 ] The API for ib_query_qp requires the driver to set cur_qp_state on return, add the missing set. Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver") Link: https://lore.kernel.org/r/20201021114952.38876-1-kamalheib1@gmail.com Signed-off-by: Kamal Heib Acked-by: Selvin Xavier Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index ef9135aa392c1..ab218767bf05f 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -1590,6 +1590,7 @@ int bnxt_re_query_qp(struct ib_qp *ib_qp, struct ib_qp_attr *qp_attr, goto out; } qp_attr->qp_state = __to_ib_qp_state(qplib_qp->state); + qp_attr->cur_qp_state = __to_ib_qp_state(qplib_qp->cur_qp_state); qp_attr->en_sqd_async_notify = qplib_qp->en_sqd_async_notify ? 1 : 0; qp_attr->qp_access_flags = __to_ib_access_flags(qplib_qp->access); qp_attr->pkey_index = qplib_qp->pkey_index; -- 2.27.0