]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add support for dumping MAC umv counter in debugfs
authorJian Shen <shenjian15@huawei.com>
Sat, 26 Jun 2021 01:00:17 +0000 (09:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jun 2021 20:34:58 +0000 (13:34 -0700)
commit83b035208072f36810305a118fb8e89d83ed0d5f
tree528b386e4cf28512e1b1372d3320bf5e8130d237
parentd3990a8ff20514e3ea6e811b315837d129d640be
net: hns3: add support for dumping MAC umv counter in debugfs

This patch adds support of dumping MAC umv counter in debugfs,
which will be helpful for debugging.

The display style is below:
$ cat umv_info
num_alloc_vport  : 2
max_umv_size     : 256
wanted_umv_size  : 256
priv_umv_size    : 85
share_umv_size   : 86
vport(0) used_umv_num : 1
vport(1) used_umv_num : 1

Signed-off-by: Jian Shen <shenjian15@huawei.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
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c