net: hns3: debugfs add support dumping page pool info
authorHao Chen <chenhao288@hisilicon.com>
Mon, 11 Oct 2021 14:46:08 +0000 (22:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Oct 2021 10:31:15 +0000 (11:31 +0100)
commit850bfb912a6deb3134c5922882f8d139f77d8c5c
tree8b5abd1927ef116f92ac8b1f8beee2b03bebe735
parent25b90c19102f50ae261cbc328361c0fc66b7c901
net: hns3: debugfs add support dumping page pool info

Add a file node "page_pool_info" for debugfs, then cat this
file node to dump page pool info as below:

QUEUE_ID  ALLOCATE_CNT  FREE_CNT      POOL_SIZE(PAGE_NUM)  ORDER  NUMA_ID  MAX_LEN
0         512           0             512                  0      2        4K
1         512           0             512                  0      2        4K
2         512           0             512                  0      2        4K
3         512           0             512                  0      2        4K
4         512           0             512                  0      2        4K

Signed-off-by: Hao Chen <chenhao288@hisilicon.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c