OpenCloudOS-Kernel/drivers/net/ethernet/hisilicon/hns3
Yufeng Mo 365e860aa7 net: hns3: refactor dump reg dcb info of debugfs
Currently, the debugfs command for reg dcb info is implemented by
"echo xxxx > cmd", and record the information in dmesg. It's
unnecessary and heavy. To improve it, create a single file
"dcb" for it, and query it by command "cat dcb",
return the result to userspace, rather than record in dmesg.

The display style is below:
$ cat dcb
qset_id  roce_qset_mask  nic_qset_mask  qset_shaping_pass  qset_bp_status
0000           0x1            0x1             0x1               0x0
0001           0x1            0x1             0x1               0x0
0002           0x1            0x1             0x1               0x0
0003           0x1            0x1             0x1               0x0
0004           0x1            0x1             0x1               0x0
0005           0x1            0x1             0x1               0x0
0006           0x1            0x1             0x1               0x0
0007           0x1            0x1             0x1               0x0
pri_id  pri_mask  pri_cshaping_pass  pri_pshaping_pass
000       0x1           0x0                0x1
001       0x1           0x0                0x0
002       0x1           0x0                0x0
003       0x1           0x0                0x0
004       0x1           0x0                0x0
005       0x1           0x0                0x0
006       0x1           0x0                0x0
007       0x1           0x0                0x0
pg_id  pg_mask  pg_cshaping_pass  pg_pshaping_pass
000      0x1           0x0               0x1

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-05-20 15:01:03 -07:00
..
hns3pf net: hns3: refactor dump reg dcb info of debugfs 2021-05-20 15:01:03 -07:00
hns3vf net: hns3: support RXD advanced layout 2021-05-14 15:07:33 -07:00
Makefile net: hns3: add trace event support for HNS3 driver 2020-01-06 13:26:25 -08:00
hclge_mbx.h net: hns3: PF add support for pushing link status to VFs 2021-04-15 16:51:29 -07:00
hnae3.c net: hns3: add or modify some comments 2019-10-31 12:03:23 -07:00
hnae3.h net: hns3: refactor dump reg dcb info of debugfs 2021-05-20 15:01:03 -07:00
hns3_dcbnl.c net: hns3: fix some coding style issues 2019-06-09 13:20:59 -07:00
hns3_debugfs.c net: hns3: refactor dump reg dcb info of debugfs 2021-05-20 15:01:03 -07:00
hns3_debugfs.h net: hns3: refactor dump reg of debugfs 2021-05-20 15:01:03 -07:00
hns3_enet.c net: hns3: refactor dump bd info of debugfs 2021-05-14 15:07:34 -07:00
hns3_enet.h net: hns3: refactor dump bd info of debugfs 2021-05-14 15:07:34 -07:00
hns3_ethtool.c net: hns3: add handling for xmit skb with recursive fraglist 2021-03-29 13:21:00 -07:00
hns3_trace.h net: hns3: rename trace event hns3_over_8bd 2020-09-29 13:14:24 -07:00