OSDN Git Service

net: hns3: Add "tc config" info query function
authorliuzhongzhu <liuzhongzhu@huawei.com>
Thu, 22 Nov 2018 14:09:44 +0000 (14:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 24 Nov 2018 01:29:00 +0000 (17:29 -0800)
commit2849d4e7a1beb483e9ebab3904f03010c0bc1daf
tree6db99df511291ed17b67dfff2d650bfedc8d3391
parent3c666b586af1c6ed6e352555aec38d2f9478cd47
net: hns3: Add "tc config" info query function

This patch prints tc config information.

debugfs command:
echo dump tc > cmd

Sample Output:
root@(none)# echo dump tc > cmd
hns3 0000:7d:00.0: weight_offset: 14
hns3 0000:7d:00.0: tc(0): no sp mode
hns3 0000:7d:00.0: tc(1): no sp mode
hns3 0000:7d:00.0: tc(2): no sp mode
hns3 0000:7d:00.0: tc(3): no sp mode
hns3 0000:7d:00.0: tc(4): no sp mode
hns3 0000:7d:00.0: tc(5): no sp mode
hns3 0000:7d:00.0: tc(6): no sp mode
hns3 0000:7d:00.0: tc(7): no sp mode
root@(none)#

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