net: hns3: fix wrong tc bandwidth weight data issue
authorJijie Shao <shaojijie@huawei.com>
Thu, 20 Jul 2023 02:05:09 +0000 (10:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Jul 2023 08:36:23 +0000 (09:36 +0100)
commit116d9f732eef634abbd871f2c6f613a5b4677742
tree3443a86fa08642ca66af6f0452c940916a209527
parent6d2336120aa6e1a8a64fa5d6ee5c3f3d0809fe9b
net: hns3: fix wrong tc bandwidth weight data issue

Currently, the weight saved by the driver is used as the query result,
which may be different from the actual weight in the register.
Therefore, the register value read from the firmware is used
as the query result

Fixes: 0e32038dc856 ("net: hns3: refactor dump tc of debugfs")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c