2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-10 14:43:54 +08:00
linux-next/drivers/net/ethernet/marvell/mvpp2
Maxime Chevallier 1203341cc9 net: mvpp2: debugfs: add hit counter stats for Header Parser entries
One helpful feature to help debug the Header Parser TCAM filter in PPv2
is to be able to see if the entries did match something when a packet
comes in. This can be done by using the built-in hit counter for TCAM
entries.

This commit implements reading the counter, and exposing its value on
debugfs for each filter entry.

The counter is a 16-bits clear-on-read value, located at:
 .../mvpp2/<controller>/parser/XXX/hits

Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-07-16 00:10:01 -07:00
..
Makefile net: mvpp2: add a debugfs interface for the Header Parser 2018-07-16 00:10:00 -07:00
mvpp2_cls.c net: mvpp2: switch to SPDX identifiers 2018-07-16 00:10:00 -07:00
mvpp2_cls.h net: mvpp2: switch to SPDX identifiers 2018-07-16 00:10:00 -07:00
mvpp2_debugfs.c net: mvpp2: debugfs: add hit counter stats for Header Parser entries 2018-07-16 00:10:01 -07:00
mvpp2_main.c net: mvpp2: add a debugfs interface for the Header Parser 2018-07-16 00:10:00 -07:00
mvpp2_prs.c net: mvpp2: debugfs: add hit counter stats for Header Parser entries 2018-07-16 00:10:01 -07:00
mvpp2_prs.h net: mvpp2: debugfs: add hit counter stats for Header Parser entries 2018-07-16 00:10:01 -07:00
mvpp2.h net: mvpp2: debugfs: add hit counter stats for Header Parser entries 2018-07-16 00:10:01 -07:00