OpenCloudOS-Kernel/drivers/net/ethernet/hisilicon/hns3
Huazhong Tan 1556ea9120 net: hns3: refactor dump mac list of debugfs
Currently, the debugfs command for mac list info is implemented
by "echo xxxx > cmd", and record the information in dmesg. It's
unnecessary and heavy. To improve it, create two files "uc" and
"mc" under directory "mac_list" for it, and query mac list info
by "cat mac_list/uc" and "mac_list/mc", return the result to
userspace, rather than record in dmesg.

The display style is below:
$ cat mac_list/uc
UC MAC_LIST:
FUNC_ID  MAC_ADDR            STATE
pf       00:18:2d:00:00:71   ACTIVE

$ cat mac_list/mc
MC MAC_LIST:
FUNC_ID  MAC_ADDR            STATE
pf       01:80:c2:00:00:21   ACTIVE

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-05-14 15:07:34 -07:00
..
hns3pf net: hns3: refactor dump mac list of debugfs 2021-05-14 15:07:34 -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 mac list of debugfs 2021-05-14 15:07:34 -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 mac list of debugfs 2021-05-14 15:07:34 -07:00
hns3_debugfs.h net: hns3: refactor dump mac list of debugfs 2021-05-14 15:07:34 -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