提交 a8adbb8a 编写于 作者: Y Yonglong Liu 提交者: David S. Miller

net: hns3: add enabled TC numbers and DWRR weight info in debugfs

The actual enabled TC numbers and the DWRR weight of each
TC may be helpful for debugging, so adds them into debugfs.
Signed-off-by: NYonglong Liu <liuyonglong@huawei.com>
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2d3db26d
...@@ -310,8 +310,9 @@ static void hclge_title_idx_print(struct hclge_dev *hdev, bool flag, int index, ...@@ -310,8 +310,9 @@ static void hclge_title_idx_print(struct hclge_dev *hdev, bool flag, int index,
char *false_buf) char *false_buf)
{ {
if (flag) if (flag)
dev_info(&hdev->pdev->dev, "%s(%d): %s\n", title_buf, index, dev_info(&hdev->pdev->dev, "%s(%d): %s weight: %u\n",
true_buf); title_buf, index, true_buf,
hdev->tm_info.pg_info[0].tc_dwrr[index]);
else else
dev_info(&hdev->pdev->dev, "%s(%d): %s\n", title_buf, index, dev_info(&hdev->pdev->dev, "%s(%d): %s\n", title_buf, index,
false_buf); false_buf);
...@@ -339,7 +340,8 @@ static void hclge_dbg_dump_tc(struct hclge_dev *hdev) ...@@ -339,7 +340,8 @@ static void hclge_dbg_dump_tc(struct hclge_dev *hdev)
ets_weight = (struct hclge_ets_tc_weight_cmd *)desc.data; ets_weight = (struct hclge_ets_tc_weight_cmd *)desc.data;
dev_info(&hdev->pdev->dev, "dump tc\n"); dev_info(&hdev->pdev->dev, "dump tc: %u tc enabled\n",
hdev->tm_info.num_tc);
dev_info(&hdev->pdev->dev, "weight_offset: %u\n", dev_info(&hdev->pdev->dev, "weight_offset: %u\n",
ets_weight->weight_offset); ets_weight->weight_offset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册