mbox series

[net-next,v2,0/2] dpaa2-eth: add debugfs statistics

Message ID 1547828144-2654-1-git-send-email-ioana.ciornei@nxp.com
Headers show
Series dpaa2-eth: add debugfs statistics | expand

Message

Ioana Ciornei Jan. 18, 2019, 4:15 p.m. UTC
This patch set exports detailed driver counters through debugfs.
Counters which are already available through ethtool are now
presented in a structured manner (per-core, per-FQ and
per-channel) in debugfs.

The first patch is changing the dpaa2_eth_queue_count into a macro
(in order to avoid a warning) while the second one is adding the
debugfs support.

Changes in v2:
  - remove the _exit annotation of dpaa2_eth_dbg_exit

Ioana Ciornei (1):
  dpaa2-eth: transform dpaa2_eth_queue_count into a macro

Ioana Radulescu (1):
  dpaa2-eth: add debugfs statistics

 drivers/net/ethernet/freescale/dpaa2/Makefile      |   1 +
 .../ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c   | 237 +++++++++++++++++++++
 .../ethernet/freescale/dpaa2/dpaa2-eth-debugfs.h   |  31 +++
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c   |  30 ++-
 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h   |  14 +-
 5 files changed, 306 insertions(+), 7 deletions(-)
 create mode 100644 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c
 create mode 100644 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.h

Comments

David Miller Jan. 19, 2019, 6:29 p.m. UTC | #1
From: Ioana Ciornei <ioana.ciornei@nxp.com>
Date: Fri, 18 Jan 2019 16:15:58 +0000

> This patch set exports detailed driver counters through debugfs.
> Counters which are already available through ethtool are now
> presented in a structured manner (per-core, per-FQ and
> per-channel) in debugfs.
> 
> The first patch is changing the dpaa2_eth_queue_count into a macro
> (in order to avoid a warning) while the second one is adding the
> debugfs support.
> 
> Changes in v2:
>   - remove the _exit annotation of dpaa2_eth_dbg_exit

Series applied, but it would be even nicer if ethtool could collect and
report the values in the structural way you desire.