Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3564617pxb; Mon, 24 Jan 2022 12:19:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJwhuvp/nyLbdUJMallX60qGqEGURsup/D05pttkk8Wqobk99mmHv21jyQwg07wOL5pFJ4 X-Received: by 2002:a17:902:9046:b0:149:6fd4:4928 with SMTP id w6-20020a170902904600b001496fd44928mr15893509plz.135.1643055579271; Mon, 24 Jan 2022 12:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643055579; cv=none; d=google.com; s=arc-20160816; b=iS+FDX1bYnoVa+/F09Xixx/uDK36o5Z2c8Y5QgVMfxzLeMEsKEEYr8UltWEQoY6kQA Dt2kTNUAgi6+umGsCVmiPA20iFV7IexsR5wkTGaxCtpOcDkndbUC/FYFgImhmOyZE+oG Nzat2FSAZ3DPWw3T1mgQaCIjp7dmS+s66rzyLWh9j4VfhlJTbPJFR01Y4J1vzD9Ibxmw eIaSYQ457X4T2DJw26QZ4bcbTntfJW3onlxWRwYXotPMlwVuqxqxzGS6TD6DoPAa/I6E m01Bg0xQHMCKqiTrzuQdMUZtALn5TtA/kV0sQLAU5UY+Wv3NHOeUyEsKCDtvppe0C038 PVrA== 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=J5mH+u3AZ7JhOtMmhKD8l8GQeILefd4afu/cDx79nO0=; b=ea07G5ScCAXSSGTKKEoiczRTcFNQwND7XKSiXa/VT/S55NYKkzLfgyGNa9NTJ3eGlc rc33JO8rE0K9nNEVzV1lcrh5mhfgcFOonc4I4bq3ClN6x5fMbsJMaNxVkwmOHQPDN6kV jIPjE/MRcg4U/pzMZ7B5B9h0O0bdo2LSaXyiQQhKM+RrdYLmi072Qvw+48TmT16W8jof n1zt5u01oIFHIc/04mc43uNB56aWZhrcoAK22AkUKJnaZk5RRUT5nAkxaNDPjBiCFxKp 9bMuRqw7sMwKdvyqnAjNX4XEDXx2FBVz0uGuwX/ZPxSQiykDVP7/8HFTz/zng7tlfYPA 9NjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=fTb92MLC; 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 q123si14136553pgq.540.2022.01.24.12.19.22; Mon, 24 Jan 2022 12:19:39 -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=fTb92MLC; 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 S1351001AbiAXTZo (ORCPT + 99 others); Mon, 24 Jan 2022 14:25:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347616AbiAXTQ6 (ORCPT ); Mon, 24 Jan 2022 14:16:58 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8809C033273; Mon, 24 Jan 2022 11:06:36 -0800 (PST) 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 8FA45B8119D; Mon, 24 Jan 2022 19:06:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDB74C340E5; Mon, 24 Jan 2022 19:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643051194; bh=/3qmslt+K3K1qMeM8xqJO/taeKRTw9pAJyNeUNJOogE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fTb92MLCQM//5X1gg6HRgrUX+UJocvZM3Lgh7R7WfcQ3Je/AfWYK2RqB7YVMyjgze a3lKAB55QSQDGqw9ZRRJig6pI3yGikb2Xmal9UyFzMOA7QrYv7cavH9QvBPgnhrGIG BwTag1BX1xxIUXB5DwEpWywDxgKQacK7INCvOST4= 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.14 085/186] RDMA/cxgb4: Set queue pair state when being queried Date: Mon, 24 Jan 2022 19:42:40 +0100 Message-Id: <20220124183939.849919375@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183937.101330125@linuxfoundation.org> References: <20220124183937.101330125@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 3255615807299..225d4466fcb24 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -2115,6 +2115,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