OSDN Git Service

net: dpaa2-eth: export buffer pool info into a new debugfs file
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 18 Oct 2022 14:18:54 +0000 (17:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Oct 2022 08:22:11 +0000 (09:22 +0100)
commitb1dd9bf6ead81bfb910de1df3be74e9d176cae47
tree6af1f2e386f35733c564c8a8caaae0bdc611ba79
parent96b44697e53a46856aafe6cc4a9f3708a88cc2b5
net: dpaa2-eth: export buffer pool info into a new debugfs file

Export the allocated buffer pools, the number of buffers that they have
currently and which channels are using which BP.

The output looks like below:

Buffer pool info for eth2:
IDX        BPID      Buf count      CH#0      CH#1      CH#2      CH#3
BP#0         1           5124         x         x         x         x

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