OSDN Git Service

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)
commit97afd47b36dbe976c72191cf862a92d2e8756fa9
tree53a4496e8be6b0e8805d21653ebbdd6d698ea110
parentdb01afeb6614b75299b0ecba06b246143d4b894d
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