]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: do not query unsupported commands in debugfs
authorYufeng Mo <moyufeng@huawei.com>
Thu, 1 Aug 2019 03:55:36 +0000 (11:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Aug 2019 17:32:12 +0000 (13:32 -0400)
commit69007a60cd086d07ac64bb6baaeb0f6b9cae9233
treed257fdcd661220663810e92771d623b425a0a0dc
parentdfadfa842ab8136538dcf19e34342b6f5ee50b41
net: hns3: do not query unsupported commands in debugfs

Some commands are not supported on DCB-unsupported ports.
This patch distinguishes these commands and does not query
unsupported commands in debugfs.

This patch also fix an error in the dump "qos buf cfg"
command in debugfs.

Fixes: cfab4529b558 ("net: hns3: Add "tc config" info query function")
Fixes: 7cdfbcb921a5 ("net: hns3: Add "qos buffer" config info query function")
Signed-off-by: Yufeng Mo <moyufeng@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