]> 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)
commit36fc9a629b9578a737302269fa21ee982303e448
treed257fdcd661220663810e92771d623b425a0a0dc
parent1c36ed314c19ca8ca678735ccd62e1a58b0699bc
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: 7f144c8bf656 ("net: hns3: Add "tc config" info query function")
Fixes: ade1420b8ebc ("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