Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp2901554pxv; Sun, 18 Jul 2021 05:03:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbkJvCEsUI1Do9uN4X2kyZFYznxj1WQLhetfKvE9ILZ6WfQzzffH7sK3OjSYO911/tvoUg X-Received: by 2002:a5d:8d83:: with SMTP id b3mr1666026ioj.179.1626609796104; Sun, 18 Jul 2021 05:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626609796; cv=none; d=google.com; s=arc-20160816; b=Zzken4Gn/C1mrSfcQ3+AflM2oAwZesUXRrrS7NDek+CYY8jsU7JPQ/nxv6qFgtj/7P Is+sJi4nuKkFw/Dj9IrKqdxP6YDBwbBEQdRCbRBO7Eolc10Gr/VAKxDmzgWPQG8areK2 Pu04INWkQ+p2hzIOz3cn2OCbPlr2jsD+drJSiRqkMR2KADwQOBtuTEdCpq5rNLkTQFET OhTn/BXn9aMnTkJqPap7E9ych8BE/faZs4ZeUBaxmZXxVLLufYBsUO+yUQPUYysTe/RN jNB1pDNF45IzuPy5+JG5y/z13cDmLGDDc1N9m5DrRlk6bUdKtnO28gY6osNKEfrcV2RT 6CFw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=emNdx8N3bZE6PhatvcEwVsKU2TcUob3brUuEzfo7/IY=; b=Ef9sjLMJXIsW1rkO9VUmspgQdnIOugAJBmLI22/MUB6mzCTEWG8PV43WBSmOt/IYgl iYzPA0OmM7WgHwZvQ7YfNQj7F9g6xAFHzASvQnmCGFpH9ogx06tRo+DVjRywRTGgctgN ddczPPCgh08Qx6bUKhMGkr3feuqDNALnn82WGXdFybndtC4uATsdZ19YxQDzFCFgh5g7 G6hhF1rNFojeA0kOe0IdQLRDH69owaxHsSRrzGXmoj1L79+e9FF7xJzn9Wb7plA0m0lK iayHAl/wlWVUJYHinQ8iHigjezxV60/PAz20Nha2Y+HBIRgN+y6ySBO9458LVTHayrcz 1tLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AWjmjIUW; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si6315283iln.71.2021.07.18.05.03.04; Sun, 18 Jul 2021 05:03:16 -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=@kernel.org header.s=k20201202 header.b=AWjmjIUW; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233658AbhGRMEY (ORCPT + 99 others); Sun, 18 Jul 2021 08:04:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:44002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233535AbhGRMET (ORCPT ); Sun, 18 Jul 2021 08:04:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4529961040; Sun, 18 Jul 2021 12:01:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626609681; bh=fTw9WK5f1l2xxdv+4elmaMzYu9w8NWsayxaMjvxfT2k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AWjmjIUWwZly0cWLzbuMp9UqdH+Ht9gjsdYwMWFxzJghAKrPdgdP9kL0X5Q409dNR pQkQ74+q7DOdBOmBQiNkYE6CL6r8EDSGY/BMAc4IRfZ01ShkGrr+2Rhr+p0Ujqf7Xq KeSdi2jlAlTXJ772YGbkbk/HAC1e5UmwM4OaNopdWIMZUWcQXhWmpEwze4o5dF9tHt F00s0a4NdTWX6o/LPhcG4sx8u1sJtaq2KeC9+UcCuDPgOQPJDCdR60+5xliyS61yJP Sq5mBL874Wor60lzkogEvSEUpUpKjsWwA/x+WWi6q3ICtLiUEqxlDfplmIpAmyJbEd PFeuPbaYHd3mA== From: Leon Romanovsky To: Doug Ledford , Jason Gunthorpe Cc: Leon Romanovsky , Adit Ranadive , Ariel Elior , Bernard Metzler , Christian Benvenuti , Dennis Dalessandro , Gal Pressman , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Michal Kalderon , Mike Marciniszyn , Mustafa Ismail , Naresh Kumar PBS , Nelson Escobar , Potnuri Bharat Teja , Selvin Xavier , Shiraz Saleem , Steve Wise , VMware PV-Drivers , Weihang Li , Wenpeng Liang , Yishai Hadas , Zhu Yanjun Subject: [PATCH rdma-next 3/9] RDMA/efa: Remove double QP type assignment Date: Sun, 18 Jul 2021 15:00:53 +0300 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky 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") Signed-off-by: Leon Romanovsky --- 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 b4cfb656ddd5..b1c4780e86be 100644 --- a/drivers/infiniband/hw/efa/efa_verbs.c +++ b/drivers/infiniband/hw/efa/efa_verbs.c @@ -727,7 +727,6 @@ struct ib_qp *efa_create_qp(struct ib_pd *ibpd, 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.31.1