Message ID | 20230503070944.960190-12-saikrishnag@marvell.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1136315vqo; Wed, 3 May 2023 00:25:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4sqA0FNUg6l9dF8HaEWkKxpkKyWFQld4E2Tr8KVvEYVsTyqdbn/ZXuRev8NMaeqc+X6LWT X-Received: by 2002:a17:902:b20e:b0:1a9:3a8c:d590 with SMTP id t14-20020a170902b20e00b001a93a8cd590mr1085793plr.16.1683098701345; Wed, 03 May 2023 00:25:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683098701; cv=none; d=google.com; s=arc-20160816; b=C4lORX72XcoQK2oRNafDhJCuzY/N8Bb/R4LtzqtCwHnXRrsaR5OFiGELVGEKPAzOEb 65OOchqNOkiQSHq95KAPlFC40s76C0KqDUUDzqdUAlo0BGWTto/nVyauQX8h8xPl4L/W MpdsnumJVyGLZGqI/RI0+K+NIRK6KAN4XjpnV1pteLm8ZmiZOjMNnlEzV3Ruq1sYO1Th K0SAuMiDuMpquf+ugjULhB3X5+CSpWJrdN3nDDPtU4uSV4iCAJ9W//ydUIoBt0yGSzE9 +rcqP9ruyuJPkn1E6/G5R6J2i4iA7m5mG0cspnSYqodmo9vuYalfug9m1ufMstLHqWH2 GJgA== 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=5HrD54QwttedTiMCbzETL8O5YJkhYL91l0aEKVc53W0=; b=DQcSKkRowyduVIWq9cDOUGaUYeWRa3BeLqTZWgLyAFURVWAsy/CoRiMaZQ4lb1SwE/ 8OhWCnRLsgABDeAyp8HtVVRyp33h62XLvY6eDjyxEgE2fJIcCkiw1KW5F9nmsY3JbqCx BHw2EO2d3kAixKiOSfjSBpP6HxUxgIaxqul09Bz6/GDVNseWjkf+uchg3p857hZkli0s mXXcIx/ZJw/zcF2sdQmgxii8mJz5xBHu8o0hJEIKBayNw6ZO5hrXp/nasl1Dgq0b5wNh uJKPOqiZqrG0jEqndcWRQFx6poagwAyZzkEK2/2NDfy0Jam5uhhm14blG88da9724MFQ xMRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=KqSEDTN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q8-20020a170902eb8800b001a6933b3a67si31584174plg.531.2023.05.03.00.24.46; Wed, 03 May 2023 00:25:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=KqSEDTN5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbjECHM0 (ORCPT <rfc822;heyuhang3455@gmail.com> + 99 others); Wed, 3 May 2023 03:12:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjECHMY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 3 May 2023 03:12:24 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2892E468F; Wed, 3 May 2023 00:11:56 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3436AsGX004505; Wed, 3 May 2023 00:10:46 -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-transfer-encoding : content-type; s=pfpt0220; bh=5HrD54QwttedTiMCbzETL8O5YJkhYL91l0aEKVc53W0=; b=KqSEDTN5lU160vpS6cZapxPknbFsU6JDncNM9rAP0az1osAG4kPGRNUpcY2AkgT2rG5N IfglSHxkwaQI56zBEDn+TKPgYWR1YHalbRpWLlzbYkmExOB2f+6ld6wO/3wXJLHQkBSo 0tkYa9+yCX0QS1yZ/l26UQcJzfXXpitMe8De7gZlGklB1lky+t2PjguATwaHuDbjQqoV swH/HpgajkdbSEIY/Ct4LrbIIvIuRchqWCUKsE19dyx4wqXVYSawDdsFG8S51LLXPQHx lk+Ai+trl3/x45ZJERxYvO2ssX3nRfwAWYSBD2W9e3s/uhab99dPGmHUIR7VlpqZPiJ2 dw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3q92rp3m9x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 03 May 2023 00:10:46 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 3 May 2023 00:10:44 -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.48 via Frontend Transport; Wed, 3 May 2023 00:10:44 -0700 Received: from hyd1425.marvell.com (unknown [10.29.37.83]) by maili.marvell.com (Postfix) with ESMTP id 306F53F7082; Wed, 3 May 2023 00:10:39 -0700 (PDT) From: Sai Krishna <saikrishnag@marvell.com> To: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <simon.horman@corigine.com>, <leon@kernel.org>, <sgoutham@marvell.com>, <gakula@marvell.com>, <lcherian@marvell.com>, <jerinj@marvell.com>, <hkelam@marvell.com>, <sbhatta@marvell.com> CC: Sai Krishna <saikrishnag@marvell.com> Subject: [net PATCH v5 11/11] octeontx2-vf: Detach LF resources on probe cleanup Date: Wed, 3 May 2023 12:39:44 +0530 Message-ID: <20230503070944.960190-12-saikrishnag@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230503070944.960190-1-saikrishnag@marvell.com> References: <20230503070944.960190-1-saikrishnag@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: pOqeATa9YBOPTqoNVwqYwlAeXMd_-Ptn X-Proofpoint-GUID: pOqeATa9YBOPTqoNVwqYwlAeXMd_-Ptn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-03_04,2023-04-27_01,2023-02-09_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764856904171266951?= X-GMAIL-MSGID: =?utf-8?q?1764856904171266951?= |
Series |
octeontx2: Miscellaneous fixes
|
|
Commit Message
Sai Krishna Gajula
May 3, 2023, 7:09 a.m. UTC
From: Subbaraya Sundeep <sbhatta@marvell.com> When a VF device probe fails due to error in MSIX vector allocation then the resources NIX and NPA LFs were not detached. Fix this by detaching the LFs when MSIX vector allocation fails. Fixes: 3184fb5ba96e ("octeontx2-vf: Virtual function driver support") Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com> Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by: Sai Krishna <saikrishnag@marvell.com> --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c index ab126f8706c7..53366dbfbf27 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c @@ -621,7 +621,7 @@ static int otx2vf_probe(struct pci_dev *pdev, const struct pci_device_id *id) err = otx2vf_realloc_msix_vectors(vf); if (err) - goto err_mbox_destroy; + goto err_detach_rsrc; err = otx2_set_real_num_queues(netdev, qcount, qcount); if (err)