From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02100C4321E for ; Thu, 1 Dec 2022 18:01:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230158AbiLASBE (ORCPT ); Thu, 1 Dec 2022 13:01:04 -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 Precedence: bulk List-ID: X-Mailing-List: netdev@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