Skip to content

CN10KB MAC block support

Hariprasad Kelam lkml netdev 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 0 repliesNew 3 of 4 applied
  2. v34 patches 1 replySuperseded
  3. v24 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches6 repliesSuperseded

Patches in v4 3 of 4 applied

#Subject and filesSizeRepliesApplied
1/4octeontx2-af: Support variable number of lmacsdrivers/net/ethernet/marvell/octeontx2/af/cgx.c drivers/net/ethernet/marvell/octeontx2/af/cgx.h drivers/net/ethernet/marvell/octeontx2/af/lmac_common.h +5 more+42 -400 repliesApplied
2/4octeontx2-af: cn10kb: Add RPM_USX MAC supportdrivers/net/ethernet/marvell/octeontx2/af/cgx.c drivers/net/ethernet/marvell/octeontx2/af/cgx.h drivers/net/ethernet/marvell/octeontx2/af/lmac_common.h +5 more+270 -410 repliesApplied
3/4octeontx2-pf: ethtool: Implement get_fec_statsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c+34 -00 replies
4/4octeontx2-af: Add FEC stats for RPM/RPM_USX blockdrivers/net/ethernet/marvell/octeontx2/af/cgx.c drivers/net/ethernet/marvell/octeontx2/af/lmac_common.h drivers/net/ethernet/marvell/octeontx2/af/rpm.c +2 more+82 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [net-next Patch v4 0/4] CN10KB MAC block support

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