Message ID | 20230817112357.25874-3-hkelam@marvell.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp1949431vqi; Sat, 19 Aug 2023 03:36:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGyXPA/nT3w0Eh1xNkVzoeqfco3RVtjHjQM+ty+h9UdzmCA3+jB1luVF7Pl1IH+j3IAy9cV X-Received: by 2002:a05:6a20:4421:b0:145:6857:457a with SMTP id ce33-20020a056a20442100b001456857457amr1830484pzb.4.1692441410723; Sat, 19 Aug 2023 03:36:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692441410; cv=none; d=google.com; s=arc-20160816; b=ngP0OzbC7Stb6gyIcUVxEsOiq48mggaYyJlo0NKRYDv5YC2C0BohME/+B6qfpORc+G l9WUYfNWvtmVs8JxWw48ZLXRffcwAJ0fZgvath5YMmRvmKhYQ/UUtjFa72RWZ0k1BO4U zxLmlU3Doxr5JjPOudS7IIxp3zBR6D1+LefdxFB3KeEw0UR38cuNUJoI7sAOTGqyKTR4 pD/4RfejY3d9KeIuCQJk7eligebbQEPbig5CqBhxBjYe811M3W20vue+qqm/Wo0CS4TV 5o7sUvH5/My7KXj3vI9W2LYdvol29cGu3KDmSMETdeVj8Og9vxIusO6Rh8nUxwJxdJ7T tROQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=FDAvOwv2LqGa+wMd9jZNlvAu/XjCAqoWNpeCsM6PENY=; fh=FsYD/BBYZ6u4LJo2Owj/Ojm8nsJaUWIVgOQo8AcYFUY=; b=hQAJbuDP4jyDwYfTmF5rnYgu70ICDLHDR2QWhB+5MYbFeqKo0hcb3ydF4PHUXHKRbx 45mMwOgn796ZjyBk1+G0/tYL8dobRC1Tn8ZQe+MILLCdM2F0XXn6Q4L3sI605GnCGLXy 6qldfnB3X1I+hynR/PrbaktKJYIY7ThjFZNdScoy6rcTvPkd5xVndyzn0leufFvgjqoN NqPuqUCPkPFxdB0yaDOBqw/8AYby6Y9/fq7Oe024AoWL511cHrHzwYBLTFScKEHA5mau Jf3i7hoktSuxOqqqr29LBoS7mOTh3fwjZ0VJy19QJCkqC1Gq47SOofB+92H3tpzQDAwk 8e4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=KhaPGrrZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id e14-20020a63ee0e000000b005428f25f67bsi3203440pgi.784.2023.08.19.03.36.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 03:36:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=KhaPGrrZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3E8CE4E47D; Sat, 19 Aug 2023 01:31:43 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350290AbjHQLZ3 (ORCPT <rfc822;274620705z@gmail.com> + 99 others); Thu, 17 Aug 2023 07:25:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350251AbjHQLYt (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 17 Aug 2023 07:24:49 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB8BB2D61; Thu, 17 Aug 2023 04:24:48 -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 37H3mBLU015931; Thu, 17 Aug 2023 04:24:43 -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=FDAvOwv2LqGa+wMd9jZNlvAu/XjCAqoWNpeCsM6PENY=; b=KhaPGrrZgy2N7k372JxApc374WKBLYT2kkWo+KmVq2YRLpJ9Vo0Cx9AhlW9wLjSk87Jz oblOrq/g5uWJSmJKI+ZedRlVf0H8dwWzUXxcfUVPZnBaLQY9xcIaW41RErNxIvqi6Sod 3HqivFN/VUfm8hlY+2v2dQ6Mq5TzqQZcNlMA++BEOTdNyGjfKaM39ndNkCXlgU0ml+6i gz6TbjUBG17aZ4k98G3VGg6CTk4bBXm+Y+kABcfjycrQ11DDv5RcOhD4c5uYY8zcVMfd 4eCLfb0PQiKrZ4K6OWpyYs/c3O5UMoQ2jKn+Nt71fZMh4HmQ1H2Y0iZngJ/SSAkUxRhW Pg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3sgptkwmh9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 17 Aug 2023 04:24:43 -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; Thu, 17 Aug 2023 04:24:20 -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; Thu, 17 Aug 2023 04:24:20 -0700 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id BCDFB3F7060; Thu, 17 Aug 2023 04:24:14 -0700 (PDT) From: Hariprasad Kelam <hkelam@marvell.com> To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <kuba@kernel.org>, <davem@davemloft.net>, <sgoutham@marvell.com>, <gakula@marvell.com>, <jerinj@marvell.com>, <lcherian@marvell.com>, <sbhatta@marvell.com>, <hkelam@marvell.com>, <naveenm@marvell.com>, <edumazet@google.com>, <pabeni@redhat.com> Subject: [net-next Patch 2/5] octeontx2-af: Don't treat lack of CGX interfaces as error Date: Thu, 17 Aug 2023 16:53:54 +0530 Message-ID: <20230817112357.25874-3-hkelam@marvell.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230817112357.25874-1-hkelam@marvell.com> References: <20230817112357.25874-1-hkelam@marvell.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: Na4wFlKBN-dXDOQGZWx0J1zy0KtCpVHE X-Proofpoint-GUID: Na4wFlKBN-dXDOQGZWx0J1zy0KtCpVHE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-17_03,2023-08-17_02,2023-05-22_02 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_PASS 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: INBOX X-GMAIL-THRID: 1774653444554302577 X-GMAIL-MSGID: 1774653444554302577 |
Series |
None
|
|
Commit Message
Hariprasad Kelam
Aug. 17, 2023, 11:23 a.m. UTC
From: Sunil Goutham <sgoutham@marvell.com> Don't treat lack of CGX LMACs on the system as a error. Instead ignore it so that LBK VFs are created and can be used. Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: Hariprasad Kelam <hkelam@marvell.com> --- drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c index b3f766b970ca..4e3aec7bdbee 100644 --- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c +++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c @@ -345,7 +345,7 @@ int rvu_cgx_init(struct rvu *rvu) rvu->cgx_cnt_max = cgx_get_cgxcnt_max(); if (!rvu->cgx_cnt_max) { dev_info(rvu->dev, "No CGX devices found!\n"); - return -ENODEV; + return 0; } rvu->cgx_idmap = devm_kzalloc(rvu->dev, rvu->cgx_cnt_max *