Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp973835rwb; Thu, 1 Dec 2022 10:36:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf75GLDa2QUp7Y7tFFrajIUUbhHarkjZGngZbRIRO1Ej1wkYIElXzBvKQ79HBuwciQKKe/FM X-Received: by 2002:a17:90b:2544:b0:20a:f341:4ed9 with SMTP id nw4-20020a17090b254400b0020af3414ed9mr76302924pjb.11.1669919774918; Thu, 01 Dec 2022 10:36:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669919774; cv=none; d=google.com; s=arc-20160816; b=OxJTqcu5V8X/JRnUsyC/lj4wmnwZ9SpprceVzCztTCftOfPGgHVGHMGIuuot9RxcIP jFw6mh5/1I4Wc4tcZ9OO9cSp5aWc+EwTLCjlF6J/Pb53BDB3WPn1EIwCKXhmjCF8SZoi YoXQ5ZDMV9WPtBfXY7xEezLFe1pvlIR6I785EVRJKce7cX5OuKALr+sIfRpv0+9upsiZ L9DYC2hvE2rRdvQBqIuuvjC+isZwltgFcZddIDLPvup4qKt/Xq8kKWT50Rg0nOaN16dS pNP4GXPpcYT5PFpbPYB1Z4sLHYXnOP9sKHbR0fTNaL6KfSCoaGmAxD2k7hKrIiCVKuKD a3nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=PbepnRQ8Mtbd6ZEottlav0DTF44g1GzanbdlHhp41eU=; b=BcC1qCJcz6iYos1ajjY9+FQQt5gBLAWKxug7LyJ/wW/bdvLDS+/ciaPeXPNS2SDMP5 TWJgknUdWVNTz7iMt5fRnJrN5vdp+19P9HxcMAKHBE3Ilm0+Y2mrVcBkWfClyShyYN+t iPJ6cJmOGAyLx/E5eqCpTV1iMA0TFVGs20c9BX1wT26ZzYCyBVuadgTBRDi57CJIy4tp yh8yanHskrskn0KuyBOfavNnomR846824tGI6LrNdWSMYh8SJOgek0MwoSpDa5Wm+s/5 SV4jpfQcaesz61cZNtgD4vFEstcq8CFjcrv4Ca2+dc+e4qyzT+H3IP+gwLgDtM/mhMK/ 2cbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=c2tQzWn5; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p22-20020a63f456000000b00476e3bb232dsi4942423pgk.185.2022.12.01.10.36.04; Thu, 01 Dec 2022 10:36:14 -0800 (PST) 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=c2tQzWn5; 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 S230196AbiLASBF (ORCPT + 82 others); Thu, 1 Dec 2022 13:01:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbiLASA7 (ORCPT ); Thu, 1 Dec 2022 13:00:59 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C79E8B2765; Thu, 1 Dec 2022 10:00:58 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B1E4xcU015735; Thu, 1 Dec 2022 10:00:46 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=PbepnRQ8Mtbd6ZEottlav0DTF44g1GzanbdlHhp41eU=; b=c2tQzWn5j0ulYZ35YfJNfgxg9hpspn0O6SMNQII2mLegtGvoSej01fxHHbvWs2R7X5n0 ZOVhLl+LAnvF7fjoMA1pGXuJjCbr75tpGKQnp+KbmocVJaqrg1kOgYn8F4N3bJE/6MJn oKtK3cs0joXOAonM871DM3wmxtPkRUHUoGNq07OnFXqr6/W7NpO04BC4hVk2ACzun5Ay PAT0I6UvsGOSCss/hPE8U1nySJmlkgrchlzuxDFAuMDj6If48q1kZVr2fcK4zJGoAffJ 8zgilU+LYE4FLVCh27L9XoRaAW7Jy4t1HSzB3ePk4ONYzYyCitAvGDs98tZ9A/0v9Qxa mw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m6k712xx9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 01 Dec 2022 10:00:46 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 1 Dec 2022 10:00:44 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 1 Dec 2022 10:00:44 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 991445B6927; Thu, 1 Dec 2022 10:00:41 -0800 (PST) From: Hariprasad Kelam To: , CC: , , , , , , , , Subject: [net-next PATCH v3 0/4] CN10KB MAC block support Date: Thu, 1 Dec 2022 23:30:36 +0530 Message-ID: <20221201180040.14147-1-hkelam@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: ZCdELoiY8BnKelmKRM315YBQIjipu6Pj X-Proofpoint-GUID: ZCdELoiY8BnKelmKRM315YBQIjipu6Pj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-01_12,2022-12-01_01,2022-06-22_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 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: X-Mailing-List: linux-kernel@vger.kernel.org OcteonTx2's next gen platform the CN10KB has RPM_USX MAC which has a different serdes when compared to RPM MAC. Though the underlying HW is different, the CSR interface has been designed largely inline with RPM MAC, with few exceptions though. So we are using the same CGX driver for RPM_USX MAC as well and will have a different set of APIs for RPM_USX where ever necessary. The RPM and RPM_USX blocks support a different number of LMACS. RPM_USX support 8 LMACS per MAC block whereas legacy RPM supports only 4 LMACS per MAC. with this RPM_USX support double the number of DMAC filters and fifo size. This patchset adds initial support for CN10KB's RPM_USX MAC i.e registering the driver and defining MAC operations (mac_ops). With these changes PF and VF netdev packet path will work and PF and VF netdev drivers are able to configure MAC features like pause frames,PFC and loopback etc. Also implements FEC stats for CN10K Mac block RPM and CN10KB Mac block RPM_USX and extends ethtool support for PF and VF drivers by defining get_fec_stats API to display FEC stats. Hariprasad Kelam (3): octeontx2-af: cn10kb: Add RPM_USX MAC support octeontx2-pf: ethtool: Implement get_fec_stats octeontx2-af: Add FEC stats for RPM/RPM_USX block Rakesh Babu Saladi (1): octeontx2-af: Support variable number of lmacs --- v2 * remove debugfs entry to display FEC stats rather display same over ethtool APIs v3 * Dont remove existing FEC stats support over ethtool statistics (ethtool -S) --- .../net/ethernet/marvell/octeontx2/af/cgx.c | 78 ++++-- .../net/ethernet/marvell/octeontx2/af/cgx.h | 9 +- .../marvell/octeontx2/af/lmac_common.h | 15 +- .../net/ethernet/marvell/octeontx2/af/rpm.c | 262 ++++++++++++++++-- .../net/ethernet/marvell/octeontx2/af/rpm.h | 36 ++- .../net/ethernet/marvell/octeontx2/af/rvu.h | 12 +- .../ethernet/marvell/octeontx2/af/rvu_cgx.c | 49 +++- .../marvell/octeontx2/af/rvu_debugfs.c | 2 +- .../ethernet/marvell/octeontx2/af/rvu_nix.c | 10 +- .../marvell/octeontx2/af/rvu_npc_hash.c | 4 +- .../marvell/octeontx2/nic/otx2_ethtool.c | 40 +++ 11 files changed, 434 insertions(+), 83 deletions(-) -- 2.17.1