Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3800311ybi; Mon, 29 Jul 2019 12:53:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjpC+0I4gKlzAXCQ9FwZi0+oIFv8xFdFYSbXpUZM/sKD5DMMZl3h+GeFXtPmBO5yNujBfc X-Received: by 2002:aa7:843c:: with SMTP id q28mr38896766pfn.152.1564429990908; Mon, 29 Jul 2019 12:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564429990; cv=none; d=google.com; s=arc-20160816; b=Oo6GK7SUqwC78u86EapnSsgTzvsQmAnkFyNGZfSZDF6WvLLdVuUAzJrGv2E8cT61Bt fH/4KV3B62mMiV/mzSgqbfHVnjAtC0nvSXhHZOUZ22npIGV5K41TKrZJV7MRaC1qOB9m 5KeqnhEI3e/4aR7hVzgfmTwyoPBqQ/BSuvXUZlIOH4FuVqKsOGpJPvcCKxQq4XJsGbaq JuoZEiIPi8qcVb/SMKZKJKnsFQ+X+xs843DjjquNMBp5brR7P597zrVixw0n2zzP3XQR n4Xrpzg7kUhZuTJTuh04hv3cwlTBijwTsMwG3MccWXdzRVXPnkmG2YIQmpau+/0RN4KF GUsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5EWgG5rKcLje3dlRMy1xMawzhStjDc4niqWMPVFK6/M=; b=J4Ou0XqNi2jAEGGx7i1mZzhhVTngLs8Fyik8z14vo3rYnbi4CtPdoDGVrVt7md1P1t Qw2YrUUzB4Nei1zCBxMP1wPAD57Rl45vAsDbt3Me3aEhcZ/OhpLtUBSAobtaXhJ6Qil8 DbEkp37pSHTMQ9TMAdB8s7u6N1APHojmVeSccy/RfXw+KbQ4ddLjexAw9POIQuC7QYeo LNSv27byofP4AyX7QZ/oQ2nzCp29/a9Yr08vBrSw9oexzUgJAfHDYCn4r1TCYvh/KKI1 g8gTfWx55Iv1xYwx20n7CPkCGrj3cU84CIZ4fogLtr6HwRA9Kkf92WaXEQzjm7gme0Op 0ulw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lMKT7Exr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y63si26544842pgd.403.2019.07.29.12.52.56; Mon, 29 Jul 2019 12:53:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lMKT7Exr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403779AbfG2Tu3 (ORCPT + 99 others); Mon, 29 Jul 2019 15:50:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:41364 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390387AbfG2TuZ (ORCPT ); Mon, 29 Jul 2019 15:50:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2406B2054F; Mon, 29 Jul 2019 19:50:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429824; bh=GvbE2fC6pwWDfbRv6F6wOgwMcnnR0+US54MondtgepI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lMKT7ExrrXYwcuMhGW14YTYyDqZpYiepEdXohXwuzJzHcKqB0wsJkqNys/1Mi0nv4 u3UPG+1vUY8YglFRwe7Viqr0L5zCrzo5X+DjH3zE3IDABIKNvVJDwXoTXDyqMC7Ax6 S+IhQJVptJsfMbvAkfkXIIptAcT0D+t1UOTuVDHo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Changcheng Liu , Shiraz Saleem , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.2 106/215] RDMA/i40iw: Set queue pair state when being queried Date: Mon, 29 Jul 2019 21:21:42 +0200 Message-Id: <20190729190757.346259534@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 2e67e775845373905d2c2aecb9062c2c4352a535 ] The API for ib_query_qp requires the driver to set qp_state and cur_qp_state on return, add the missing sets. Fixes: d37498417947 ("i40iw: add files for iwarp interface") Signed-off-by: Changcheng Liu Acked-by: Shiraz Saleem Reviewed-by: Jason Gunthorpe Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/i40iw/i40iw_verbs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/infiniband/hw/i40iw/i40iw_verbs.c b/drivers/infiniband/hw/i40iw/i40iw_verbs.c index 5689d742bafb..4c88d6f72574 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_verbs.c +++ b/drivers/infiniband/hw/i40iw/i40iw_verbs.c @@ -772,6 +772,8 @@ static int i40iw_query_qp(struct ib_qp *ibqp, struct i40iw_qp *iwqp = to_iwqp(ibqp); struct i40iw_sc_qp *qp = &iwqp->sc_qp; + attr->qp_state = iwqp->ibqp_state; + attr->cur_qp_state = attr->qp_state; attr->qp_access_flags = 0; attr->cap.max_send_wr = qp->qp_uk.sq_size; attr->cap.max_recv_wr = qp->qp_uk.rq_size; -- 2.20.1