From patchwork Wed Sep 9 17:43:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Russkikh X-Patchwork-Id: 261232 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=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 456FBC43461 for ; Wed, 9 Sep 2020 17:44:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB2EA2080A for ; Wed, 9 Sep 2020 17:44:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="E/EaNwFd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728297AbgIIRoG (ORCPT ); Wed, 9 Sep 2020 13:44:06 -0400 Received: from mx0b-0016f401.pphosted.com ([67.231.156.173]:59470 "EHLO mx0b-0016f401.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728936AbgIIRnx (ORCPT ); Wed, 9 Sep 2020 13:43:53 -0400 Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 089HfWiN013639; Wed, 9 Sep 2020 10:43:50 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=Hx1RagAJ72K8MWwE4yvTpgHOlfP7rTF/AX459NvVHGY=; b=E/EaNwFdiMPSiai/lRb4laOLEvvtLk0cpXI74APnxwex4wX25hSM+joOBMom103doyWK +z4hxdcli7GbBYCAA12eEoOKEVCLuGjV3zZNvUuKrZQ2nLe9nEl19FYMIL9K53Pgbzrb cETCnob3KHCYfGne9CDdAFHnxuZScscEIG+puSwE9PSxFFPf4Ndor9lamLWmoG4BDgQQ Em/QG6xeIV/6uBzOBPVs/fIOg8h471udNhE0syUVtKZeJHnw+uR39tMrlKQSii66dXiN Lz2L15cZpaAXgCTiphgXW6aYy/Ii7UHRSpi+sVJaR3lf2LJgKgLGORPctR69cVjAWRq4 Cg== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 33ccvr7gyb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 09 Sep 2020 10:43:50 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 9 Sep 2020 10:43:48 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 9 Sep 2020 10:43:49 -0700 Received: from NN-LT0019.marvell.com (NN-LT0019.marvell.com [10.6.200.75]) by maili.marvell.com (Postfix) with ESMTP id B4B403F703F; Wed, 9 Sep 2020 10:43:46 -0700 (PDT) From: Igor Russkikh To: CC: "David S . Miller" , Dmitry Bogdanov , Igor Russkikh , "Michal Kalderon" Subject: [PATCH v3 net 3/3] net: qed: RDMA personality shouldn't fail VF load Date: Wed, 9 Sep 2020 20:43:10 +0300 Message-ID: <20200909174310.686-4-irusskikh@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200909174310.686-1-irusskikh@marvell.com> References: <20200909174310.686-1-irusskikh@marvell.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-09_13:2020-09-09,2020-09-09 signatures=0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Dmitry Bogdanov 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 --- 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 f1f75b6d0421..b8dc5c4591ef 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_sriov.c +++ b/drivers/net/ethernet/qlogic/qed/qed_sriov.c @@ -71,6 +71,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: