net: hns3: refine function hclge_dbg_dump_tm_pri()
authorGuangbin Huang <huangguangbin2@huawei.com>
Mon, 30 Aug 2021 06:06:39 +0000 (14:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Aug 2021 08:43:18 +0000 (09:43 +0100)
commit04d96139ddb32dd15e5941c303f511a92759a5be
tree3514f3f4a4f5cbe010e447873bf056da3d2ab96c
parent161ad669e6c23529415bffed5cb3bfa012e46cb4
net: hns3: refine function hclge_dbg_dump_tm_pri()

To improve flexibility, simplicity and maintainability to dump info of
every element of tm priority, add a struct hclge_dbg_item array of tm
priority and fill string of every data according to this array.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c