Message ID | 20221205070521.21860-1-hkelam@marvell.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2104379wrr; Sun, 4 Dec 2022 23:09:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6uO9JHeA7S4aRY4BdLy1sthLE1CWqh0BJ/cz5hUHiYCBfcrnMEWOC6A3FiOYbLamk7n91s X-Received: by 2002:a05:6402:294d:b0:467:6b55:3cf5 with SMTP id ed13-20020a056402294d00b004676b553cf5mr74285473edb.22.1670224145443; Sun, 04 Dec 2022 23:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670224145; cv=none; d=google.com; s=arc-20160816; b=VZj3MFhsSaSIw73By+mcSh/tJdBwECZaY6Rd9Q6qrcR1b3O5gC4BZeGj9JcHq9JJK5 JP3xqCnYLBeEulJBMIFw7/rv+0guhlxIeRgyypNVjIq9nZh6yfYNhcq3tXUQqaVI4k9D GahvQumJ+51S3IKE4r+PPrW/euttK1wdLFjoOk3XHPxm31/ciZ8fCdoGk6ukJX5hb8pU HN0kpSP+oTzv/6eymP3rwqjPHrTmYqPAzyXV0fR2tZZmmXqlaeNyc60wRVNhaVeOhJL+ HDN+9ccnEtfUxL69LNAg7jixrOTtsZgyzt+KzGFUnGf6pFmKBN6brNXdKSZ9a4WhpTZ7 5zyA== 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=J51TjlbGZxngqrd64GNJBARAUG5iCA1resE94iExrZI=; b=pGMrumiBBMqA1FlsKYAkCuPV5Rnba77AL7NtW+9q+Ey8Fbk4x2gmmPEI1faZshpWiI RnTf9lpJw0nAhXPXxnDFesgdMLMdLT2IgO8PcvZPik0pThpA3PXrmhtyQQA1T79Hvy8U FBZUHg6iZD44EpfEs/ti3Vi6qjBRgoOIU5c9IxLtZyBJLJWwTFoUwww1y7U9wxRt9kM6 d8D1dTPIbjDGTEHVtyUFgHuJ6ntjeDk1KXo0fFQR34McZhPIOovw9QbcZHTGu2ETLIpC K7sUx8pA6psS3zwfGoEubAomTWIHXk3zyo5qDqsI7cMPyLTaANtmSJZV46SYY/zxv7Fw NjeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=graz+9WY; 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 cw20-20020a170906479400b0078db1258ae9si11825050ejc.555.2022.12.04.23.08.41; Sun, 04 Dec 2022 23:09:05 -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=graz+9WY; 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 S231579AbiLEHFl (ORCPT <rfc822;jaysivo@gmail.com> + 99 others); Mon, 5 Dec 2022 02:05:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231365AbiLEHFj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Dec 2022 02:05:39 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF391BC93; Sun, 4 Dec 2022 23:05:38 -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 2B4NRLY5032413; Sun, 4 Dec 2022 23:05:29 -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=J51TjlbGZxngqrd64GNJBARAUG5iCA1resE94iExrZI=; b=graz+9WY4V4jVIBgF8J13Wbqua4vlwGjdfyen6dUjHuUosJGyg9cbkQDbq0z7bR6j+2o tnO+/Rn+nJRQ8/Fti8dQKLVz6Pasm3C6GAlwJzvcsc+dghhjRcVybzdMGPyiJVuviusi GqH0HMWVD5cI8JeMPSXr1rNYu/c8qHaJM2CmWmRZsWyNNqZ43uxSQE43rAngWtEj7+7b uZijmlZf0U5DuCGDkdcLuvW5Qosk/NIAFtrRIXr0nBhFrm7m0xuw/iy7KhiyuAUbITNH 8B/2H+khYIfE5dGAuKxx1R4+FtSHQ/qWXQWmdX/VAhpKJVClnizt1fYskoIe/qy3hdtu dg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m84pumnvr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 04 Dec 2022 23:05:29 -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; Sun, 4 Dec 2022 23:05:25 -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; Sun, 4 Dec 2022 23:05:25 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 7EE803F707A; Sun, 4 Dec 2022 23:05:22 -0800 (PST) From: Hariprasad Kelam <hkelam@marvell.com> To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <kuba@kernel.org>, <davem@davemloft.net>, <pabeni@redhat.com>, <edumazet@google.com>, <sgoutham@marvell.com>, <lcherian@marvell.com>, <gakula@marvell.com>, <jerinj@marvell.com>, <sbhatta@marvell.com> Subject: [net-next Patch v4 0/4] CN10KB MAC block support Date: Mon, 5 Dec 2022 12:35:17 +0530 Message-ID: <20221205070521.21860-1-hkelam@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: TAQatKYat40nPoe5_SEq1ZpJkPPOeftT X-Proofpoint-GUID: TAQatKYat40nPoe5_SEq1ZpJkPPOeftT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-05_01,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: <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?1751356954019687042?= X-GMAIL-MSGID: =?utf-8?q?1751356954019687042?= |
Series |
CN10KB MAC block support
|
|
Message
Hariprasad Kelam
Dec. 5, 2022, 7:05 a.m. UTC
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 .../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 | 34 +++ 11 files changed, 428 insertions(+), 83 deletions(-) -- 2.17.1
Comments
Hello: This series was applied to netdev/net-next.git (master) by Paolo Abeni <pabeni@redhat.com>: On Mon, 5 Dec 2022 12:35:17 +0530 you wrote: > 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. > > [...] Here is the summary with links: - [net-next,v4,1/4] octeontx2-af: Support variable number of lmacs https://git.kernel.org/netdev/net-next/c/f2e664ad503d - [net-next,v4,2/4] octeontx2-af: cn10kb: Add RPM_USX MAC support https://git.kernel.org/netdev/net-next/c/b9d0fedc6234 - [net-next,v4,3/4] octeontx2-pf: ethtool: Implement get_fec_stats (no matching commit) - [net-next,v4,4/4] octeontx2-af: Add FEC stats for RPM/RPM_USX block https://git.kernel.org/netdev/net-next/c/84ad3642115d You are awesome, thank you!