]> 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)
commite6bde86ced0b9c637fa5c9b90c17e42a29c6d592
tree53a4496e8be6b0e8805d21653ebbdd6d698ea110
parenta7a194e31d6c1a7556f0876e8fada9b0d0adfc4b
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