netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V2 net-next 0/2] net: hns3: updates for -next
@ 2021-01-28 11:51 Huazhong Tan
  2021-01-28 11:51 ` [PATCH V2 net-next 1/2] net: hns3: add interfaces to query information of tm priority/qset Huazhong Tan
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Huazhong Tan @ 2021-01-28 11:51 UTC (permalink / raw)
  To: davem
  Cc: netdev, salil.mehta, yisen.zhuang, kuba, huangdaode, linuxarm,
	Huazhong Tan

This patchset adds dump tm info of nodes, priority and qset in debugfs.
Three debugfs files tm_nodes, tm_priority and tm_qset are created in
new tm directory, and use cat command to dump their info, for examples:

$ cat tm_nodes
       BASE_ID  MAX_NUM
PG         0         8
PRI        0         8
QSET       0         8
QUEUE      0      1024

$ cat tm_priority
ID    MODE  DWRR  C_IR_B  C_IR_U  C_IR_S  C_BS_B  C_BS_S  C_FLAG  C_RATE(Mbps)  P_IR_B  P_IR_U  P_IR_S  P_BS_B  P_BS_S  P_FLAG  P_RATE(Mbps)
0000  dwrr  100     0       0       0       5      20       0          0        150       7       0       5      20       0          0
0001    sp    0     0       0       0       0       0       0          0          0       0       0       0       0       0          0
0002    sp    0     0       0       0       0       0       0          0          0       0       0       0       0       0          0
0003    sp    0     0       0       0       0       0       0          0          0       0       0       0       0       0          0
0004    sp    0     0       0       0       0       0       0          0          0       0       0       0       0       0          0
0005    sp    0     0       0       0       0       0       0          0          0       0       0       0       0       0          0
0006    sp    0     0       0       0       0       0       0          0          0       0       0       0       0       0          0
0007    sp    0     0       0       0       0       0       0          0          0       0       0       0       0       0          0

$ cat tm_qset
ID    MAP_PRI  LINK_VLD  MODE  DWRR
0000     0        1      dwrr  100
0001     0        0        sp    0
0002     0        0        sp    0
0003     0        0        sp    0
0004     0        0        sp    0
0005     0        0        sp    0
0006     0        0        sp    0

change log:
V2: add readonly files for dump all nodes, priority and qset info
    suggested by Jakub Kicinski.

previous version:
V1: https://patchwork.kernel.org/project/netdevbpf/patch/1610694569-43099-1-git-send-email-tanhuazhong@huawei.com/

Guangbin Huang (2):
  net: hns3: add interfaces to query information of tm priority/qset
  net: hns3: add debugfs support for tm nodes, priority and qset info

 drivers/net/ethernet/hisilicon/hns3/hnae3.h        |   8 +
 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c |  55 +++++-
 .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h |   1 +
 .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 153 +++++++++++++++++
 .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c    |   1 +
 .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h    |   2 +
 .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c  | 186 +++++++++++++++++++++
 .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h  |  48 +++++-
 8 files changed, 452 insertions(+), 2 deletions(-)

-- 
2.7.4


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-02-02  1:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-28 11:51 [PATCH V2 net-next 0/2] net: hns3: updates for -next Huazhong Tan
2021-01-28 11:51 ` [PATCH V2 net-next 1/2] net: hns3: add interfaces to query information of tm priority/qset Huazhong Tan
2021-01-28 11:51 ` [PATCH V2 net-next 2/2] net: hns3: add debugfs support for tm nodes, priority and qset info Huazhong Tan
2021-02-01 21:25   ` Nathan Chancellor
2021-02-02  1:26     ` Huazhong Tan
2021-01-30  5:00 ` [PATCH V2 net-next 0/2] net: hns3: updates for -next patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).