mbox series

[net-next,00/15] net: hns3: refactor rss/tqp stats functions

Message ID 20220105142015.51097-1-huangguangbin2@huawei.com (mailing list archive)
Headers show
Series net: hns3: refactor rss/tqp stats functions | expand

Message

Guangbin Huang Jan. 5, 2022, 2:20 p.m. UTC
From: Jie Wang <wangjie125@huawei.com>

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

Comments

patchwork-bot+netdevbpf@kernel.org Jan. 5, 2022, 2:50 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed, 5 Jan 2022 22:20:00 +0800 you wrote:
> From: Jie Wang <wangjie125@huawei.com>
> 
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,01/15] net: hns3: create new rss common structure hclge_comm_rss_cfg
    https://git.kernel.org/netdev/net-next/c/9667b814387c
  - [net-next,02/15] net: hns3: refactor hclge_comm_send function in PF/VF drivers
    https://git.kernel.org/netdev/net-next/c/9970308fe6a5
  - [net-next,03/15] net: hns3: create new set of common rss get APIs for PF and VF rss module
    https://git.kernel.org/netdev/net-next/c/1bfd6682e9b5
  - [net-next,04/15] net: hns3: refactor PF rss get APIs with new common rss get APIs
    https://git.kernel.org/netdev/net-next/c/7347255ea389
  - [net-next,05/15] net: hns3: refactor VF rss get APIs with new common rss get APIs
    https://git.kernel.org/netdev/net-next/c/027733b12a10
  - [net-next,06/15] net: hns3: create new set of common rss set APIs for PF and VF module
    https://git.kernel.org/netdev/net-next/c/6de060042867
  - [net-next,07/15] net: hns3: refactor PF rss set APIs with new common rss set APIs
    https://git.kernel.org/netdev/net-next/c/1813ee524331
  - [net-next,08/15] net: hns3: refactor VF rss set APIs with new common rss set APIs
    https://git.kernel.org/netdev/net-next/c/7428d6c93665
  - [net-next,09/15] net: hns3: create new set of common rss init APIs for PF and VF reuse
    https://git.kernel.org/netdev/net-next/c/2c0d3f4cd25f
  - [net-next,10/15] net: hns3: refactor PF rss init APIs with new common rss init APIs
    https://git.kernel.org/netdev/net-next/c/07dce03cd5aa
  - [net-next,11/15] net: hns3: refactor VF rss init APIs with new common rss init APIs
    https://git.kernel.org/netdev/net-next/c/93969dc14fcd
  - [net-next,12/15] net: hns3: create new set of common tqp stats APIs for PF and VF reuse
    https://git.kernel.org/netdev/net-next/c/287db5c40d15
  - [net-next,13/15] net: hns3: refactor PF tqp stats APIs with new common tqp stats APIs
    https://git.kernel.org/netdev/net-next/c/add7645c841c
  - [net-next,14/15] net: hns3: refactor VF tqp stats APIs with new common tqp stats APIs
    https://git.kernel.org/netdev/net-next/c/4afc310cf9a8
  - [net-next,15/15] net: hns3: create new common cmd code for PF and VF modules
    https://git.kernel.org/netdev/net-next/c/43710bfebf23

You are awesome, thank you!