]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add support for dump MAC ID and loopback status in debugfs
authorYufeng Mo <moyufeng@huawei.com>
Wed, 19 Feb 2020 01:23:32 +0000 (09:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2020 00:25:12 +0000 (16:25 -0800)
commitdd07b252485ebe26082a67bb8ff8ae66ab37b461
tree2d47dd98782da637006529105f412c883119ec21
parenta4837a22465ffb2407b097c9fe33e9a2b95d13b6
net: hns3: add support for dump MAC ID and loopback status in debugfs

The MAC ID and loopback status information are obtained from
the hardware, which will be helpful for debugging. This patch
adds support for these two items in debugfs.

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>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h