Skip to content

Commit 116d9f7

Browse files
Jijie Shaodavem330
authored andcommitted
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: 0e32038 ("net: hns3: refactor dump tc of debugfs") Signed-off-by: Jijie Shao <shaojijie@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 6d23361 commit 116d9f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,7 @@ static int hclge_dbg_dump_tc(struct hclge_dev *hdev, char *buf, int len)
693693
for (i = 0; i < HNAE3_MAX_TC; i++) {
694694
sch_mode_str = ets_weight->tc_weight[i] ? "dwrr" : "sp";
695695
pos += scnprintf(buf + pos, len - pos, "%u %4s %3u\n",
696-
i, sch_mode_str,
697-
hdev->tm_info.pg_info[0].tc_dwrr[i]);
696+
i, sch_mode_str, ets_weight->tc_weight[i]);
698697
}
699698

700699
return 0;

0 commit comments

Comments
 (0)