]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add function type check for debugfs help information
authorYufeng Mo <moyufeng@huawei.com>
Fri, 19 Apr 2019 03:05:47 +0000 (11:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Apr 2019 01:43:16 +0000 (18:43 -0700)
commit4483cb15a729e9160ada71d5bb1bc70339ccf83f
tree53a4496e8be6b0e8805d21653ebbdd6d698ea110
parent44a4f444a8cf4613c93f953d24a9ec5736d977f0
net: hns3: add function type check for debugfs help information

PF supports all debugfs command, but VF only supports part of
debugfs command. So VF should not show unsupported help information.

This patch adds a check for PF and PF to show the supportable help
information.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3_enet.h