Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp2566357lkm; Mon, 20 Sep 2021 18:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhPX+KCZ8cyjvML2KQ7pXnJatAZiHecnZca2fEXmGz5ylauC9rb2xTUxLzbRsY9UwhkrVF X-Received: by 2002:a5e:c018:: with SMTP id u24mr17312312iol.129.1632189193088; Mon, 20 Sep 2021 18:53:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632189193; cv=none; d=google.com; s=arc-20160816; b=bv0fjD38oQvvpuzX0TyCtRcI9Ccd/CsXUg9f3uv2bJCD1SED0Do9C9cf3Z7AOhVDbT moCD/S/0NiCfyu29gCjBYM5iv4tWO5+Me5JxxOtcCn8B4D30xnHQu65VaPvxxUiqsQVr yzRKL6MF733p5P2aXU1d4hJN+MaChpwLJWQHCSt5EP88DQSeNkFSRE4GSf/Zp3LycVjq 2Lcyv41/E+bQwvirKc63ae7LarIRQ0t4b+oYPSwruf4W6TpkCdP4AO1tLQlm/fYzDEyx E7St77vuI0pomutQ5VynZjukqh4P2be3a4U82MT0U5GDI1JmNU6LXM4qERdwtDKypyzx XD5g== 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=Ao1FJd9HfCXy34l/LsgLWeDOvN6e53DS2EB1bde4V6Y=; b=UHlMKpSUMZN9Kogl8nsf//z4AUYMn/n9mGHpWYj3OQXdjMGeClz3oRmtzCjK8tUpoG M4WuYy8mnJslrlx7E9Nd7FtdblYoNGorxIRYiaKDjk2oUEla0wmzaOcs9zEzfZBstMzq tkZOwhrF0uA27/AUssRLkKGZguTGw16I8lqMnEgUxSe56mG43kkkvJgeKG6ds3YIDJ0R Np7upirtTsQ0WAQeJYViQtQkMRkmxnYeDpWz7tQuXCSyPZsFTF1nBNfKjYV76iZJTFaW 43SKIbR1Gbp4NVkWAgVsUfpFk+EcVJS6zEQiGhe10oOlq7uQrgWKh2TkPyEPMVniKxdE PgzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hSJdNoAI; 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 z6si3155498iom.65.2021.09.20.18.53.02; Mon, 20 Sep 2021 18:53:13 -0700 (PDT) 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=hSJdNoAI; 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 S1357024AbhITSI1 (ORCPT + 99 others); Mon, 20 Sep 2021 14:08:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:60636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350383AbhITSC7 (ORCPT ); Mon, 20 Sep 2021 14:02:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 73F7661A80; Mon, 20 Sep 2021 17:16:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632158199; bh=f9lH3nbC6oI0i8vHl2wYdC504QITxI+t9PGjBYQH678=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hSJdNoAIKTTX5dH8S+BAlcvSoOwOAAYUjFlOwtyo6SCmS6iHyeZyFTr7oqC0FHgz7 7OInk7+c3s8dCO+ElrEcJ7dQXaSrON/4t2vrQM+aPdzN8jXK9ZGLqt4lHprrcCyumM V4K6jgiLbUm8zQ3gl7GYpLvDCWo7y8aeqWcWFY8M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gal Pressman , Leon Romanovsky , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.4 045/260] RDMA/efa: Remove double QP type assignment Date: Mon, 20 Sep 2021 18:41:03 +0200 Message-Id: <20210920163932.645313525@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163931.123590023@linuxfoundation.org> References: <20210920163931.123590023@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: Leon Romanovsky [ Upstream commit f9193d266347fe9bed5c173e7a1bf96268142a79 ] The QP type is set by the IB/core and shouldn't be set in the driver. Fixes: 40909f664d27 ("RDMA/efa: Add EFA verbs implementation") Link: https://lore.kernel.org/r/838c40134c1590167b888ca06ad51071139ff2ae.1627040189.git.leonro@nvidia.com Acked-by: Gal Pressman Signed-off-by: Leon Romanovsky Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/efa/efa_verbs.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/infiniband/hw/efa/efa_verbs.c b/drivers/infiniband/hw/efa/efa_verbs.c index 4edae89e8e3c..17f1e59ab12e 100644 --- a/drivers/infiniband/hw/efa/efa_verbs.c +++ b/drivers/infiniband/hw/efa/efa_verbs.c @@ -745,7 +745,6 @@ struct ib_qp *efa_create_qp(struct ib_pd *ibpd, rq_entry_inserted = true; qp->qp_handle = create_qp_resp.qp_handle; qp->ibqp.qp_num = create_qp_resp.qp_num; - qp->ibqp.qp_type = init_attr->qp_type; qp->max_send_wr = init_attr->cap.max_send_wr; qp->max_recv_wr = init_attr->cap.max_recv_wr; qp->max_send_sge = init_attr->cap.max_send_sge; -- 2.30.2