mbox series

[V2,net-next,0/8] net: hns3: Adds support of debugfs to HNS3 driver

Message ID 20181122140948.23504-1-salil.mehta@huawei.com
Headers show
Series net: hns3: Adds support of debugfs to HNS3 driver | expand

Message

Salil Mehta Nov. 22, 2018, 2:09 p.m. UTC
This patchset adds support of debugfs to the HNS3 driver. 

Support has been added to query info related to below items:
1. Queue related ("echo queue info [queue no] > cmd")
2. Flow Director ("echo dump fd tcam > cmd")
3. TC config ("echo dump tc > cmd")
4. Transmit Module/Scheduler ("echo dump tm > cmd")
5. QoS pause ("echo dump qos pause cfg > cmd")
6. QoS buffer ("echo dump qos pri map > cmd")
7. QoS prio map ("echo dump qos buf cfg > cmd")

NOTE: Above commands are *read-only* and are only intended to
query the information from the SoC(and dump inside the kernel,
for now) and in no way tries to perform write operations for
the purpose of configuration etc.

Change Log
----------
V1-->V2:
   * Addressed the comments provided by Jakub Kicinski. 
     1. Removed the .rej files mistakenly made part of Flow Director patch.
        Link: https://lkml.org/lkml/2018/11/20/249
     2. Added command summary in the cover letter
        Link: https://lkml.org/lkml/2018/11/22/1 

liuzhongzhu (8):
  net: hns3: Add debugfs framework registration
  net: hns3: Add "queue info" query function
  net: hns3: Add "FD flow table" info query function
  net: hns3: Add "tc config" info query function
  net: hns3: Add "tm config" info query function
  net: hns3: Add "qos pause" config info query function
  net: hns3: Add "qos prio map" info query function
  net: hns3: Add "qos buffer" config info query function

 drivers/net/ethernet/hisilicon/hns3/Makefile       |   2 +-
 drivers/net/ethernet/hisilicon/hns3/hnae3.h        |   2 +
 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 265 +++++++++++
 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c    |  17 +-
 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h    |   4 +
 .../net/ethernet/hisilicon/hns3/hns3pf/Makefile    |   2 +-
 .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h |   1 +
 .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c | 487 +++++++++++++++++++++
 .../ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h |  23 +
 .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c    |   1 +
 .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h    |   1 +
 .../net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.h  |   6 +
 12 files changed, 807 insertions(+), 4 deletions(-)
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h

-- 
2.7.4

Comments

David Miller Nov. 24, 2018, 1:29 a.m. UTC | #1
From: Salil Mehta <salil.mehta@huawei.com>

Date: Thu, 22 Nov 2018 14:09:40 +0000

> This patchset adds support of debugfs to the HNS3 driver. 

> 

> Support has been added to query info related to below items:

> 1. Queue related ("echo queue info [queue no] > cmd")

> 2. Flow Director ("echo dump fd tcam > cmd")

> 3. TC config ("echo dump tc > cmd")

> 4. Transmit Module/Scheduler ("echo dump tm > cmd")

> 5. QoS pause ("echo dump qos pause cfg > cmd")

> 6. QoS buffer ("echo dump qos pri map > cmd")

> 7. QoS prio map ("echo dump qos buf cfg > cmd")

> 

> NOTE: Above commands are *read-only* and are only intended to

> query the information from the SoC(and dump inside the kernel,

> for now) and in no way tries to perform write operations for

> the purpose of configuration etc.

> 

> Change Log

> ----------

> V1-->V2:

>    * Addressed the comments provided by Jakub Kicinski. 

>      1. Removed the .rej files mistakenly made part of Flow Director patch.

>         Link: https://lkml.org/lkml/2018/11/20/249

>      2. Added command summary in the cover letter

>         Link: https://lkml.org/lkml/2018/11/22/1 


Series applied.