[PATCH net-next 00/13] net: hns3: refactor cmdq functions in PF/VF

Guangbin Huang posted 13 patches 4 years, 6 months ago
drivers/net/ethernet/hisilicon/hns3/Makefile  |  18 +-
.../hns3/hns3_common/hclge_comm_cmd.c         | 626 ++++++++++++++++++
.../hns3/hns3_common/hclge_comm_cmd.h         | 227 +++++++
.../ethernet/hisilicon/hns3/hns3pf/Makefile   |  12 -
.../hisilicon/hns3/hns3pf/hclge_cmd.c         | 591 -----------------
.../hisilicon/hns3/hns3pf/hclge_cmd.h         | 162 +----
.../hisilicon/hns3/hns3pf/hclge_debugfs.c     |  10 +-
.../hisilicon/hns3/hns3pf/hclge_err.c         |  25 +-
.../hisilicon/hns3/hns3pf/hclge_main.c        | 170 ++---
.../hisilicon/hns3/hns3pf/hclge_main.h        |  23 +-
.../hisilicon/hns3/hns3pf/hclge_mbx.c         |  16 +-
.../hisilicon/hns3/hns3pf/hclge_mdio.c        |   4 +-
.../hisilicon/hns3/hns3pf/hclge_ptp.c         |   2 +-
.../ethernet/hisilicon/hns3/hns3vf/Makefile   |  10 -
.../hisilicon/hns3/hns3vf/hclgevf_cmd.c       | 556 ----------------
.../hisilicon/hns3/hns3vf/hclgevf_cmd.h       | 151 +----
.../hisilicon/hns3/hns3vf/hclgevf_main.c      | 155 +++--
.../hisilicon/hns3/hns3vf/hclgevf_main.h      |  30 +-
.../hisilicon/hns3/hns3vf/hclgevf_mbx.c       |  23 +-
19 files changed, 1126 insertions(+), 1685 deletions(-)
create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c
create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h
delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile
delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile
delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c
[PATCH net-next 00/13] net: hns3: refactor cmdq functions in PF/VF
Posted by Guangbin Huang 4 years, 6 months ago
Currently, hns3 PF and VF module have two sets of cmdq APIs to provide
cmdq message interaction functions. Most of these APIs are the same. The
only differences are the function variables and names with pf and vf
suffixes. These two sets of cmdq APIs are redundent and add extra bug fix
work.

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


Jie Wang (13):
  net: hns3: refactor hns3 makefile to support hns3_common module
  net: hns3: create new cmdq hardware description structure
    hclge_comm_hw
  net: hns3: use struct hclge_desc to replace hclgevf_desc in VF cmdq
    module
  net: hns3: create new set of unified hclge_comm_cmd_send APIs
  net: hns3: refactor hclge_cmd_send with new hclge_comm_cmd_send API
  net: hns3: refactor hclgevf_cmd_send with new hclge_comm_cmd_send API
  net: hns3: create common cmdq resource allocate/free/query APIs
  net: hns3: refactor PF cmdq resource APIs with new common APIs
  net: hns3: refactor VF cmdq resource APIs with new common APIs
  net: hns3: create common cmdq init and uninit APIs
  net: hns3: refactor PF cmdq init and uninit APIs with new common APIs
  net: hns3: refactor VF cmdq init and uninit APIs with new common APIs
  net: hns3: delete the hclge_cmd.c and hclgevf_cmd.c

 drivers/net/ethernet/hisilicon/hns3/Makefile  |  18 +-
 .../hns3/hns3_common/hclge_comm_cmd.c         | 626 ++++++++++++++++++
 .../hns3/hns3_common/hclge_comm_cmd.h         | 227 +++++++
 .../ethernet/hisilicon/hns3/hns3pf/Makefile   |  12 -
 .../hisilicon/hns3/hns3pf/hclge_cmd.c         | 591 -----------------
 .../hisilicon/hns3/hns3pf/hclge_cmd.h         | 162 +----
 .../hisilicon/hns3/hns3pf/hclge_debugfs.c     |  10 +-
 .../hisilicon/hns3/hns3pf/hclge_err.c         |  25 +-
 .../hisilicon/hns3/hns3pf/hclge_main.c        | 170 ++---
 .../hisilicon/hns3/hns3pf/hclge_main.h        |  23 +-
 .../hisilicon/hns3/hns3pf/hclge_mbx.c         |  16 +-
 .../hisilicon/hns3/hns3pf/hclge_mdio.c        |   4 +-
 .../hisilicon/hns3/hns3pf/hclge_ptp.c         |   2 +-
 .../ethernet/hisilicon/hns3/hns3vf/Makefile   |  10 -
 .../hisilicon/hns3/hns3vf/hclgevf_cmd.c       | 556 ----------------
 .../hisilicon/hns3/hns3vf/hclgevf_cmd.h       | 151 +----
 .../hisilicon/hns3/hns3vf/hclgevf_main.c      | 155 +++--
 .../hisilicon/hns3/hns3vf/hclgevf_main.h      |  30 +-
 .../hisilicon/hns3/hns3vf/hclgevf_mbx.c       |  23 +-
 19 files changed, 1126 insertions(+), 1685 deletions(-)
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.h
 delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/Makefile
 delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
 delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile
 delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c

-- 
2.33.0

Re: [PATCH net-next 00/13] net: hns3: refactor cmdq functions in PF/VF
Posted by patchwork-bot+netdevbpf@kernel.org 4 years, 6 months ago
Hello:

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

On Fri, 31 Dec 2021 18:22:30 +0800 you wrote:
> Currently, hns3 PF and VF module have two sets of cmdq APIs to provide
> cmdq message interaction functions. Most of these APIs are the same. The
> only differences are the function variables and names with pf and vf
> suffixes. These two sets of cmdq APIs are redundent and add extra bug fix
> work.
> 
> This series refactor the cmdq APIs in hns3 PF and VF by implementing one
> set of common cmdq APIs for PF and VF reuse and deleting the old APIs.
> 
> [...]

Here is the summary with links:
  - [net-next,01/13] net: hns3: refactor hns3 makefile to support hns3_common module
    https://git.kernel.org/netdev/net-next/c/5f20be4e90e6
  - [net-next,02/13] net: hns3: create new cmdq hardware description structure hclge_comm_hw
    https://git.kernel.org/netdev/net-next/c/0a7b6d221868
  - [net-next,03/13] net: hns3: use struct hclge_desc to replace hclgevf_desc in VF cmdq module
    https://git.kernel.org/netdev/net-next/c/6befad603d79
  - [net-next,04/13] net: hns3: create new set of unified hclge_comm_cmd_send APIs
    https://git.kernel.org/netdev/net-next/c/8d307f8e8cf1
  - [net-next,05/13] net: hns3: refactor hclge_cmd_send with new hclge_comm_cmd_send API
    https://git.kernel.org/netdev/net-next/c/eaa5607db377
  - [net-next,06/13] net: hns3: refactor hclgevf_cmd_send with new hclge_comm_cmd_send API
    https://git.kernel.org/netdev/net-next/c/076bb537577f
  - [net-next,07/13] net: hns3: create common cmdq resource allocate/free/query APIs
    https://git.kernel.org/netdev/net-next/c/da77aef9cc58
  - [net-next,08/13] net: hns3: refactor PF cmdq resource APIs with new common APIs
    https://git.kernel.org/netdev/net-next/c/d3c69a8812c2
  - [net-next,09/13] net: hns3: refactor VF cmdq resource APIs with new common APIs
    https://git.kernel.org/netdev/net-next/c/745f0a19ee9a
  - [net-next,10/13] net: hns3: create common cmdq init and uninit APIs
    https://git.kernel.org/netdev/net-next/c/0b04224c1312
  - [net-next,11/13] net: hns3: refactor PF cmdq init and uninit APIs with new common APIs
    https://git.kernel.org/netdev/net-next/c/8e2288cad6cb
  - [net-next,12/13] net: hns3: refactor VF cmdq init and uninit APIs with new common APIs
    https://git.kernel.org/netdev/net-next/c/cb413bfa6e8b
  - [net-next,13/13] net: hns3: delete the hclge_cmd.c and hclgevf_cmd.c
    https://git.kernel.org/netdev/net-next/c/aab8d1c6a5e3

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