]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: add support to query function table
authorLuo bin <luobin9@huawei.com>
Fri, 28 Aug 2020 03:37:48 +0000 (11:37 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2020 19:21:27 +0000 (12:21 -0700)
commit649673625bcaed38ef9ce2d7537d11fbe4a7b8df
treef27128b84ce450058209db5d28188ffc1e8434f6
parent12da82342eca9e99320285314507a421e163e9e1
hinic: add support to query function table

add debugfs node for querying function table, for example:
cat /sys/kernel/debug/hinic/0000:15:00.0/func_table/valid

Signed-off-by: Luo bin <luobin9@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_debugfs.c
drivers/net/ethernet/huawei/hinic/hinic_debugfs.h
drivers/net/ethernet/huawei/hinic/hinic_dev.h
drivers/net/ethernet/huawei/hinic/hinic_hw_dev.h
drivers/net/ethernet/huawei/hinic/hinic_main.c