• liuzhongzhu's avatar
    net: hns3: Add "tm config" info query function · 96227f4c
    liuzhongzhu authored
    This patch prints Transmit Module's Traffic sched
    related config information.
    
    debugfs command:
    echo dump tm > cmd
    
    Sample output:
    root@(none)# echo dump tm > cmd
    hns3 0000:7d:00.0: dump tm
    hns3 0000:7d:00.0: PG_TO_PRI gp_id: 0
    hns3 0000:7d:00.0: PG_TO_PRI map: 0x1
    hns3 0000:7d:00.0: QS_TO_PRI qs_id: 0
    hns3 0000:7d:00.0: QS_TO_PRI priority: 0
    hns3 0000:7d:00.0: QS_TO_PRI link_vld: 1
    hns3 0000:7d:00.0: NQ_TO_QS nq_id: 0
    hns3 0000:7d:00.0: NQ_TO_QS qset_id: 1024
    hns3 0000:7d:00.0: PG pg_id: 0
    hns3 0000:7d:00.0: PG dwrr: 100
    hns3 0000:7d:00.0: QS qs_id: 0
    hns3 0000:7d:00.0: QS dwrr: 100
    hns3 0000:7d:00.0: PRI pri_id: 0
    hns3 0000:7d:00.0: PRI dwrr: 100
    hns3 0000:7d:00.0: PRI_C pri_id: 0
    hns3 0000:7d:00.0: PRI_C pri_shapping: 0x2850000
    hns3 0000:7d:00.0: PRI_P pri_id: 0
    hns3 0000:7d:00.0: PRI_P pri_shapping: 0x2850796
    hns3 0000:7d:00.0: PG_C pg_id: 0
    hns3 0000:7d:00.0: PG_C pg_shapping: 0x2850000
    hns3 0000:7d:00.0: PG_P pg_id: 0
    hns3 0000:7d:00.0: PG_P pg_shapping: 0x2850496
    hns3 0000:7d:00.0: PORT port_shapping: 0x2850296
    hns3 0000:7d:00.0: PG_SCH pg_id: 0
    hns3 0000:7d:00.0: PRI_SCH pg_id: 0
    hns3 0000:7d:00.0: QS_SCH pg_id: 0
    hns3 0000:7d:00.0: BP_TO_QSET pg_id: 0
    hns3 0000:7d:00.0: BP_TO_QSET pg_shapping: 0x0
    hns3 0000:7d:00.0: BP_TO_QSET qs_bit_map: 0x0
    root@(none)#
    Signed-off-by: default avatarliuzhongzhu <liuzhongzhu@huawei.com>
    Signed-off-by: default avatarSalil Mehta <salil.mehta@huawei.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    96227f4c
hclge_debugfs.c 9.41 KB