From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: davem@davemloft.net
Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Antoine Tenart <antoine.tenart@bootlin.com>,
thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com,
miquel.raynal@bootlin.com, nadavh@marvell.com,
stefanc@marvell.com, ymarkman@marvell.com, mw@semihalf.com
Subject: [PATCH net-next v2 0/5] net: mvpp2: add debugfs interface
Date: Sat, 14 Jul 2018 13:29:23 +0200 [thread overview]
Message-ID: <20180714112928.14246-1-maxime.chevallier@bootlin.com> (raw)
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
--
2.11.0
next reply other threads:[~2018-07-14 11:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-14 11:29 Maxime Chevallier [this message]
2018-07-14 11:29 ` [PATCH net-next v2 1/5] net: mvpp2: switch to SPDX identifiers Maxime Chevallier
2018-07-14 11:29 ` [PATCH net-next v2 2/5] net: mvpp2: add a debugfs interface for the Header Parser Maxime Chevallier
2018-07-14 11:29 ` [PATCH net-next v2 3/5] net: mvpp2: debugfs: add hit counter stats for Header Parser entries Maxime Chevallier
2018-07-14 11:29 ` [PATCH net-next v2 4/5] net: mvpp2: debugfs: add entries for classifier flows Maxime Chevallier
2018-07-14 11:29 ` [PATCH net-next v2 5/5] net: mvpp2: debugfs: add classifier hit counters Maxime Chevallier
2018-07-16 7:10 ` [PATCH net-next v2 0/5] net: mvpp2: add debugfs interface David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180714112928.14246-1-maxime.chevallier@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=antoine.tenart@bootlin.com \
--cc=davem@davemloft.net \
--cc=gregory.clement@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=mw@semihalf.com \
--cc=nadavh@marvell.com \
--cc=netdev@vger.kernel.org \
--cc=stefanc@marvell.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=ymarkman@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).