]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add DFX registers information for ethtool -d
authorGuangbin Huang <huangguangbin2@huawei.com>
Fri, 9 Aug 2019 02:31:12 +0000 (10:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 20:44:32 +0000 (13:44 -0700)
commitd1ef04e4ed27f3a24fc24b83521617271533c73f
tree75b0063e447cfdc1bfb09f6cdb2d59197b547044
parent38f7091bc4d410337fd8cdd761a0aa91aafa0a60
net: hns3: add DFX registers information for ethtool -d

Now we can use ethtool -d command to dump some registers. However,
these registers information is not enough to find out where the problem is.

This patch adds DFX registers information after original registers
when use ethtool -d commmand to dump registers. Also, using macro
replaces some related magic number.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Reviewed-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
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