Skip to content

net: hns3: refactor rss/tqp stats functions

Guangbin Huang lkml netdev 1 version Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesApplied 15/15

Patches in v1 All 15 applied

#Subject and filesSizeRepliesApplied
1/15net: hns3: create new rss common structure hclge_comm_rss_cfgdrivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.h+34 -00 repliesApplied
2/15net: hns3: refactor hclge_comm_send function in PF/VF driversdrivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +1 more+38 -530 repliesApplied
3/15net: hns3: create new set of common rss get APIs for PF and VF rss moduledrivers/net/ethernet/hisilicon/hns3/Makefile drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.h+197 -20 repliesApplied
4/15net: hns3: refactor PF rss get APIs with new common rss get APIsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +2 more+67 -1600 repliesApplied
5/15net: hns3: refactor VF rss get APIs with new common rss get APIsdrivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h+24 -990 repliesApplied
6/15net: hns3: create new set of common rss set APIs for PF and VF moduledrivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.h+230 -10 repliesApplied
7/15net: hns3: refactor PF rss set APIs with new common rss set APIsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h+36 -2980 repliesApplied
8/15net: hns3: refactor VF rss set APIs with new common rss set APIsdrivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h+42 -2930 repliesApplied
9/15net: hns3: create new set of common rss init APIs for PF and VF reusedrivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.h+213 -50 repliesApplied
10/15net: hns3: refactor PF rss init APIs with new common rss init APIsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c+11 -1310 repliesApplied
11/15net: hns3: refactor VF rss init APIs with new common rss init APIsdrivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c+25 -1760 repliesApplied
12/15net: hns3: create new set of common tqp stats APIs for PF and VF reusedrivers/net/ethernet/hisilicon/hns3/Makefile drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c +1 more+161 -20 repliesApplied
13/15net: hns3: refactor PF tqp stats APIs with new common tqp stats APIsdrivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h+17 -1560 repliesApplied
14/15net: hns3: refactor VF tqp stats APIs with new common tqp stats APIsdrivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h+11 -1340 repliesApplied
15/15net: hns3: create new common cmd code for PF and VF modulesdrivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c +4 more+279 -3290 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 00/15] net: hns3: refactor rss/tqp stats functions

From: Jie Wang <[email protected]>

Currently, hns3 PF and VF module have two sets of rss and tqp stats APIs to provide get and set functions. Most of these APIs are the same. There is no need to keep these two sets of same functions for double development and bugfix work.

This series refactor the rss and tqp stats APIs in hns3 PF and VF by implementing one set of common APIs for PF and VF reuse and deleting the old APIs.

Jie Wang (15):
net: hns3: create new rss common structure hclge_comm_rss_cfg
net: hns3: refactor hclge_comm_send function in PF/VF drivers
net: hns3: create new set of common rss get APIs for PF and VF rss
module
net: hns3: refactor PF rss get APIs with new common rss get APIs
net: hns3: refactor VF rss get APIs with new common rss get APIs
net: hns3: create new set of common rss set APIs for PF and VF module
net: hns3: refactor PF rss set APIs with new common rss set APIs
net: hns3: refactor VF rss set APIs with new common rss set APIs
net: hns3: create new set of common rss init APIs for PF and VF reuse
net: hns3: refactor PF rss init APIs with new common rss init APIs
net: hns3: refactor VF rss init APIs with new common rss init APIs
net: hns3: create new set of common tqp stats APIs for PF and VF reuse
net: hns3: refactor PF tqp stats APIs with new common tqp stats APIs
net: hns3: refactor VF tqp stats APIs with new common tqp stats APIs
net: hns3: create new common cmd code for PF and VF modules

 drivers/net/ethernet/hisilicon/hns3/Makefile  |   5 +-
 .../hns3/hns3_common/hclge_comm_cmd.c         |  80 +--
 .../hns3/hns3_common/hclge_comm_cmd.h         | 277 +++++++-
 .../hns3/hns3_common/hclge_comm_rss.c         | 525 ++++++++++++++
 .../hns3/hns3_common/hclge_comm_rss.h         | 136 ++++
 .../hns3/hns3_common/hclge_comm_tqp_stats.c   | 115 ++++
 .../hns3/hns3_common/hclge_comm_tqp_stats.h   |  39 ++
 .../hisilicon/hns3/hns3pf/hclge_cmd.h         | 278 +-------
 .../hisilicon/hns3/hns3pf/hclge_dcb.c         |   2 +-
 .../hisilicon/hns3/hns3pf/hclge_main.c        | 632 ++---------------
 .../hisilicon/hns3/hns3pf/hclge_main.h        |  65 +-
 .../hisilicon/hns3/hns3pf/hclge_mbx.c         |   7 +-
 .../ethernet/hisilicon/hns3/hns3pf/hclge_tm.c |   2 +-
 .../hisilicon/hns3/hns3vf/hclgevf_cmd.h       |  71 +-
 .../hisilicon/hns3/hns3vf/hclgevf_main.c      | 646 ++----------------
 .../hisilicon/hns3/hns3vf/hclgevf_main.h      |  60 +-
 16 files changed, 1243 insertions(+), 1697 deletions(-)
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.c
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_rss.h
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.h
Signature · 1 line
2.33.0