From patchwork Tue Sep 29 11:01:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 291055 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2334EC4727F for ; Tue, 29 Sep 2020 11:52:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D234F20702 for ; Tue, 29 Sep 2020 11:52:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601380354; bh=4Q5H3BEWxpzT96w1uD+oPuS+X2Ttl5cI7URi/6z2lFw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=kAQgXv51LDSMIbKFQzSiZPpLylajdHgxQq9JiNKZEXW8Gt99BuAgJ/+m8EDzd5T4L Rg3KsjfcNGHUmBUof94R78DwsDIjcDR2ZLls7zFeaT0WJ/YTGljfoLRa+Fcrxz9Y8D vYhQWsM6gJkUv4FXQ2hROSdr7gigDRtsp0ms7aQ8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731075AbgI2Lrb (ORCPT ); Tue, 29 Sep 2020 07:47:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:48654 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731060AbgI2LrQ (ORCPT ); Tue, 29 Sep 2020 07:47:16 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 4FD8C21D7D; Tue, 29 Sep 2020 11:47:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601380035; bh=4Q5H3BEWxpzT96w1uD+oPuS+X2Ttl5cI7URi/6z2lFw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nXhSVV7z/N5jv2fs17qRiR1pph057NdR5MLO5RDnDq+bbMyFqc9mwOe+9aUaSqlW6 LKZeCsVBbM+HMtHZtC7FI1cXh/96/QAnN7EA7OXt/f7e1TKZNCITnERaT311rhSANI ZuVJ9R0G4ud1L/RWuoszC2g1qqfHtlkRo06qdr7o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Igor Russkikh , Michal Kalderon , Dmitry Bogdanov , "David S. Miller" , Sasha Levin Subject: [PATCH 5.8 39/99] net: qed: RDMA personality shouldnt fail VF load Date: Tue, 29 Sep 2020 13:01:22 +0200 Message-Id: <20200929105931.645453739@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929105929.719230296@linuxfoundation.org> References: <20200929105929.719230296@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Dmitry Bogdanov [ Upstream commit ce1cf9e5025f4e2d2198728391f1847b3e168bc6 ] Fix the assert during VF driver installation when the personality is iWARP Fixes: 1fe614d10f45 ("qed: Relax VF firmware requirements") Signed-off-by: Igor Russkikh Signed-off-by: Michal Kalderon Signed-off-by: Dmitry Bogdanov Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/qlogic/qed/qed_sriov.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/qlogic/qed/qed_sriov.c b/drivers/net/ethernet/qlogic/qed/qed_sriov.c index 20679fd4204be..229c6f3ff3935 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_sriov.c +++ b/drivers/net/ethernet/qlogic/qed/qed_sriov.c @@ -97,6 +97,7 @@ static int qed_sp_vf_start(struct qed_hwfn *p_hwfn, struct qed_vf_info *p_vf) p_ramrod->personality = PERSONALITY_ETH; break; case QED_PCI_ETH_ROCE: + case QED_PCI_ETH_IWARP: p_ramrod->personality = PERSONALITY_RDMA_AND_ETH; break; default: