mbox series

[V2,net-next,0/2] net: hns3: updates for -next

Message ID 1611834696-56207-1-git-send-email-tanhuazhong@huawei.com (mailing list archive)
Headers show
Series net: hns3: updates for -next | expand

Message

Huazhong Tan Jan. 28, 2021, 11:51 a.m. UTC
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(-)

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 30, 2021, 5 a.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (refs/heads/master):

On Thu, 28 Jan 2021 19:51:34 +0800 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [V2,net-next,1/2] net: hns3: add interfaces to query information of tm priority/qset
    https://git.kernel.org/netdev/net-next/c/2bbad0aa40e1
  - [V2,net-next,2/2] net: hns3: add debugfs support for tm nodes, priority and qset info
    https://git.kernel.org/netdev/net-next/c/04987ca1b9b6

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html