Skip to content

net: mvpp2: add debugfs interface

Maxime Chevallier lkml netdev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v15 patches 1 replySuperseded

Changes in v2 from the cover letter

- Rebased on the lastest net-next
- Made cls_flow_get non static so that it can be used in mvpp2_debugfs

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: mvpp2: switch to SPDX identifiersdrivers/net/ethernet/marvell/mvpp2/mvpp2.h drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h +3 more+6 -240 replies
2/5net: mvpp2: add a debugfs interface for the Header Parserdrivers/net/ethernet/marvell/mvpp2/Makefile drivers/net/ethernet/marvell/mvpp2/mvpp2.h drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c +3 more+371 -70 replies
3/5net: mvpp2: debugfs: add hit counter stats for Header Parser entriesdrivers/net/ethernet/marvell/mvpp2/mvpp2.h drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c +1 more+40 -00 replies
4/5net: mvpp2: debugfs: add entries for classifier flowsdrivers/net/ethernet/marvell/mvpp2/mvpp2.h drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h +1 more+329 -50 replies
5/5net: mvpp2: debugfs: add classifier hit countersdrivers/net/ethernet/marvell/mvpp2/mvpp2.h drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h +1 more+84 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH net-next v2 0/5] net: mvpp2: add debugfs interface

The PPv2 Header Parser and Classifier are not straightforward to debug, having easy access to some of the many lookup tables configuration is helpful during development and debug.

This series adds a basic debugfs interface, allowing to read data from the Header Parser and some of the Classifier tables.

For now, the interface is read-only, and contains only some basic info.

This was actually used during RSS development, and might be useful to troubleshoot some issues we might find.

The first patch of the series converts the mvpp2 files to SPDX, which eases adding the new debugfs dedicated file.

The second patch adds the interface, and exposes basic Header Parser data.

The 3rd patch adds a hit counter for the Header Parser TCAM.

The 4th patch exposes classifier info.

The 5th patch adds some hit counters for some of the classifier engines.

Changes since V1:
- Rebased on the lastest net-next
- Made cls_flow_get non static so that it can be used in mvpp2_debugfs

Antoine Tenart (1):
net: mvpp2: switch to SPDX identifiers

Maxime Chevallier (4):
net: mvpp2: add a debugfs interface for the Header Parser
net: mvpp2: debugfs: add hit counter stats for Header Parser entries
net: mvpp2: debugfs: add entries for classifier flows
net: mvpp2: debugfs: add classifier hit counters

 drivers/net/ethernet/marvell/mvpp2/Makefile        |   2 +-
 drivers/net/ethernet/marvell/mvpp2/mvpp2.h         |  23 +-
 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c     |  54 +-
 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.h     |  26 +-
 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c | 703 +++++++++++++++++++++
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c    |   9 +-
 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.c     |  33 +-
 drivers/net/ethernet/marvell/mvpp2/mvpp2_prs.h     |  16 +-
 8 files changed, 830 insertions(+), 36 deletions(-)
 create mode 100644 drivers/net/ethernet/marvell/mvpp2/mvpp2_debugfs.c
Signature · 1 line
2.11.0