Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1671461pxb; Thu, 16 Sep 2021 12:33:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSmNtl+de7V0LKbUzQsZ1CMjhTkysBSbw3d5PtQlWNug1zYvWPDTNdyq1h9SOVpWllRcFb X-Received: by 2002:aa7:da91:: with SMTP id q17mr8134652eds.276.1631820816276; Thu, 16 Sep 2021 12:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631820816; cv=none; d=google.com; s=arc-20160816; b=ro0CZPYiuD77lWI5eAxf7gtcRT1DNe99zkRzufZIAOo/kGmiABEdVreusn97V4mxDt 2hsQ3dESMsxS6Fmhuv1yTG7add2pNBNkeakH/GZSh/PKU2HjGoOnAj7og5fX0KA6/STV lz9qmxqxgiHVx9tGS6ekmg9nUzK0drUUFoZ1Ro690z3NOGORqVOa1WpQeaK2nd0A39xf /G7byf06FVx6bPsatcO5WIezu+yiRvdMne5F0fknelbGIO0QD1y3YCqcsWmvWMSF23Ye WvQhWWlEHWkz1KWJMoGRtE+s8mN6sGfRXRB0v9NBIxzTjSVQDn8rgryq+znFXTjHEnGl iIWg== 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=EwI0xRTCLxG+9f0vkT/byjDXQW/KWSp3rif8rUvqiPs=; b=iE87oZ/p14wItYiIdeSDQEBJiwC1J5wbTPQoFR27Q+7dnOF1kzQVd0xNKyYtcmvpTf +DV4fFoKi4PnHHOJ8LZA9y9i2/sOmXI9ARzO5NlkwQ/+IW1hLBcB+UV6/qKGzGwYt2pt dmnfRe3eo1v2od4MOeL+01SaF5rt1cqNoufktEDmYAY1TMlSSAZjq1OZ6edwwNbRlABs 1XxaonBeySKTlRwCxDUCEBGdG1bdfboWqBw6xxwqbTnh31Kn3FTgiMLKPrVLzX5xZt5S p7o1o8oBa+rsJ3GKTKKdBLk1lBPw97ofLevvu76V7XT2JBXaNy2LKhJi+ip4ewZVmM9T qwhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RuFN3lcS; 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 qt12si1788061ejb.538.2021.09.16.12.33.11; Thu, 16 Sep 2021 12:33:36 -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=RuFN3lcS; 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 S232539AbhIPQNP (ORCPT + 99 others); Thu, 16 Sep 2021 12:13:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:48012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233417AbhIPQH5 (ORCPT ); Thu, 16 Sep 2021 12:07:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B20D260F5B; Thu, 16 Sep 2021 16:06:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631808397; bh=kwXb65ngb3Yluy6mC2lK115LE0OqELi2xKnKY6rV1ZM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RuFN3lcSDMS79oJY+b+IhUYBY+P1GYp7MNYjMQyHLKCuzlfFWhfJZdkcvfKV/OCjN SwUwtVE+iWl+PcWTPo88hpugoQrXlz47fumLc4mH2K3fQ2cFjbnxiG5xORLranv7J7 zi9GD7exAk/OEzPcYLx07z9V61Tip6SlNMxmw2fQ= 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.10 069/306] RDMA/efa: Remove double QP type assignment Date: Thu, 16 Sep 2021 17:56:54 +0200 Message-Id: <20210916155756.407874071@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155753.903069397@linuxfoundation.org> References: <20210916155753.903069397@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 4e940fc50bba..2ece682c7835 100644 --- a/drivers/infiniband/hw/efa/efa_verbs.c +++ b/drivers/infiniband/hw/efa/efa_verbs.c @@ -717,7 +717,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.30.2