]> 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)
commit0dca317e261eda36b25c21fd90ac752944ab42fa
tree8a02198b262018892724faeb109f7d8ac1994b9a
parent27ad2b88ce70cc80d2592cbe0fada0ead800c0d7
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