Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3555819pxb; Mon, 24 Jan 2022 12:07:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLMre0b6J7jzlRi7a2F1Cg4x8mo/8Z9O9+7mJ3ItsKPPC6ZOzDIQRbKtoqmK38a4eVRe+A X-Received: by 2002:a17:902:8d83:b0:14b:4063:dbcd with SMTP id v3-20020a1709028d8300b0014b4063dbcdmr8668516plo.72.1643054876145; Mon, 24 Jan 2022 12:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643054876; cv=none; d=google.com; s=arc-20160816; b=KIE9oePLYfrBXDo2rZpEEsIcEfMgIsHkHVv5blC54WSjbE1HCorMmWifhGXEPlcyBT JhICX/YEqeQ6NOZ0d6Mu7wylSPXJXQIPFZ/wbMaBVXxWaNY7jcELeI8A0kz0jDZJ4/mN pF8Uin/cvGvIc7NjFje+AYAxdKOjD/5a0VVtlNi8FRmMX3/LoOPvblVVSusSTNaf7wRQ fDhykW2j5jkf8sMnADw0h2qfvX0ZdE/J7CJH0fIcaCmChgoTy93Y3nBdSE+MEd//6S9c PstpyjZbNbPCMhMmqf/qeB/BTlrChqyjQMVdA+j1c7Pa+OKmEwSiJbZ9bYAgwn5g7wmN Omkw== 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=14BDx051rUcbdwAPe9tVZA8IYGq+bHeG69gz5+V08xw=; b=cZFYRfllgcsq5yKTUvelMMiNJzoWHU1B+EPEfTfMEpvdZoqObZ0guGK9lvwGseIPKD jK7rBdMMrJNdTtHwqqm0IJMtGQUBXp6rQbx/6nuK5n8tgufXqseAFcMbPFRhaS+myIwk SnQvMJ1pJ8gdUrwQv65wuPxOoH/aEttm88UrLVJPQYF8xPBHtg/KqpTNcJWEVzAxAoJN YM+4705TPYa1odlNuK0aJ9xnf9HWQgXoLTXnqIPkwfV1o97zh6MX5sBVjuu22aFZDifO MpZsekcaNdRrsvx7k3+K+xA2TQq00dtTwIgQu5t4fFiQeLhz/v69dVLnztse7XqN8rtq hFGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LCpIuFmH; 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 y3si14486968pgp.711.2022.01.24.12.07.43; Mon, 24 Jan 2022 12:07:56 -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=LCpIuFmH; 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 S1345936AbiAXTEs (ORCPT + 99 others); Mon, 24 Jan 2022 14:04:48 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:56764 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343972AbiAXS5o (ORCPT ); Mon, 24 Jan 2022 13:57:44 -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 4F2B361571; Mon, 24 Jan 2022 18:57:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1C2F0C340E5; Mon, 24 Jan 2022 18:57:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643050663; bh=Qjjcms0dCT2MCUurdm3bONYYlLGmNucgLwcM9IbxerE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LCpIuFmHfdgEV/6wEf6JytC1c0lRO8d7n+/UA4TOT7GFxRp+zuwi1p83Pbk6EPrnI HHNUSJL75ibyQWQKQLyH4RPETIAUPHxu1gs+Xlj/Lz8SaU9GwVSH4qOchzQfm18nl7 OkkxRmsuzPP4ii83/j9Yzy0naN+NcLoXvts1UnQM= 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.9 072/157] RDMA/cxgb4: Set queue pair state when being queried Date: Mon, 24 Jan 2022 19:42:42 +0100 Message-Id: <20220124183935.077018026@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183932.787526760@linuxfoundation.org> References: <20220124183932.787526760@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 87bc7b0db892b..2eeac8401c927 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -1974,6 +1974,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