]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitded45d406ca736b3c23e7d099318465620fcd0f1
tree2d47dd98782da637006529105f412c883119ec21
parenta8adbb8a91a4cc260aeef7d670f3735b7b52865f
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