]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Add debugfs framework registration
authorliuzhongzhu <liuzhongzhu@huawei.com>
Thu, 22 Nov 2018 14:09:41 +0000 (14:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Nov 2018 01:28:59 +0000 (17:28 -0800)
commit161968377d22aa36d1e42142b75b30b2e4c4de4f
tree8a02198b262018892724faeb109f7d8ac1994b9a
parentfd4bac017401c31314335b028694e0a90db8aa32
net: hns3: Add debugfs framework registration

Add the debugfs framework to the driver and create a debugfs
command interface for each device.

example command:
"echo queue info > cmd" Query the packet forwarding queue information.

Signed-off-by: liuzhongzhu <liuzhongzhu@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/Makefile
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c [new file with mode: 0644]
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h