diff options
author | Hao Chen <chenhao288@hisilicon.com> | 2021-10-11 22:46:08 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-10-12 11:31:15 +0100 |
commit | 850bfb912a6deb3134c5922882f8d139f77d8c5c (patch) | |
tree | 8b5abd1927ef116f92ac8b1f8beee2b03bebe735 /drivers/net/ethernet/hisilicon/hns3/hnae3.h | |
parent | tulip: fix setting device address from rom (diff) | |
download | linux-dev-850bfb912a6deb3134c5922882f8d139f77d8c5c.tar.xz linux-dev-850bfb912a6deb3134c5922882f8d139f77d8c5c.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 17872c50b63c..5d188573c433 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h +++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h @@ -298,6 +298,7 @@ enum hnae3_dbg_cmd { HNAE3_DBG_CMD_MAC_TNL_STATUS, HNAE3_DBG_CMD_SERV_INFO, HNAE3_DBG_CMD_UMV_INFO, + HNAE3_DBG_CMD_PAGE_POOL_INFO, HNAE3_DBG_CMD_UNKNOWN, }; |