net: hns3: Add "manager table" information query function
authorliuzhongzhu <liuzhongzhu@huawei.com>
Sat, 15 Dec 2018 15:31:54 +0000 (15:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Dec 2018 18:54:18 +0000 (10:54 -0800)
commit7737f1fbb5ba1581e8b77ed4b2302485fa237f1e
tree51fdb1a61b3a7b20972be92329f0b7fec86f3e8e
parent122bedc56a6c4f5be3bc56fdc59d4b3a25097ead
net: hns3: Add "manager table" information query function

This patch prints manager table information.

debugfs command:
echo dump mng tbl > cmd

Sample Command:
root@(none)# echo dump mng tbl > cmd
 entry|mac_addr         |mask|ether|mask|vlan|mask|i_map|i_dir|e_type
 00   |01:00:5e:00:00:01|0   |00000|0   |0000|0   |00   |00   |0
 01   |c2:f1:c5:82:68:17|0   |00000|0   |0000|0   |00   |00   |0
root@(none)#

Signed-off-by: liuzhongzhu <liuzhongzhu@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h