dpaa2-eth: add channel stat to debugfs
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 24 Apr 2020 09:33:18 +0000 (12:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Apr 2020 03:37:22 +0000 (20:37 -0700)
commit460fd830dd9d68e07c4d15363fd764944090e1f8
tree9964dc7417a8545950b23c273a2318e01d1b0691
parentae23aae229b8a253a3d5d51acf3bd6103a519d85
dpaa2-eth: add channel stat to debugfs

Compute the average number of frames processed for each CDAN (Channel
Data Availability Notification) and export it to debugfs detailed
channel stats.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-debugfs.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h
drivers/net/ethernet/freescale/dpaa2/dpaa2-ethtool.c