All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guangbin Huang <huangguangbin2@huawei.com>
To: <davem@davemloft.net>, <kuba@kernel.org>, <wangjie125@huawei.com>
Cc: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<lipeng321@huawei.com>, <huangguangbin2@huawei.com>,
	<chenhao288@hisilicon.com>
Subject: [PATCH net-next 00/10] net: hns3: refactor cmdq functions in PF/VF
Date: Fri, 31 Dec 2021 18:14:49 +0800	[thread overview]
Message-ID: <20211231101459.56083-1-huangguangbin2@huawei.com> (raw)

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 (10):
  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  |   9 +-
 .../hns3/hns3_common/hclge_comm_cmd.c         | 626 ++++++++++++++++++
 .../hns3/hns3_common/hclge_comm_cmd.h         | 172 +++++
 .../hisilicon/hns3/hns3pf/hclge_cmd.c         | 591 -----------------
 .../hisilicon/hns3/hns3pf/hclge_cmd.h         | 153 +----
 .../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 +-
 .../hisilicon/hns3/hns3vf/hclgevf_cmd.c       | 556 ----------------
 .../hisilicon/hns3/hns3vf/hclgevf_cmd.h       | 140 +---
 .../hisilicon/hns3/hns3vf/hclgevf_main.c      | 133 ++--
 .../hisilicon/hns3/hns3vf/hclgevf_main.h      |  30 +-
 .../hisilicon/hns3/hns3vf/hclgevf_mbx.c       |  19 +-
 17 files changed, 1046 insertions(+), 1633 deletions(-)
 create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_cmd.c
 delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c
 delete mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.c

-- 
2.33.0


             reply	other threads:[~2021-12-31 10:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-31 10:14 Guangbin Huang [this message]
2021-12-31 10:14 ` [PATCH net-next 01/10] net: hns3: create new set of unified hclge_comm_cmd_send APIs Guangbin Huang
2021-12-31 10:14 ` [PATCH net-next 02/10] net: hns3: refactor hclge_cmd_send with new hclge_comm_cmd_send API Guangbin Huang
2021-12-31 10:14 ` [PATCH net-next 03/10] net: hns3: refactor hclgevf_cmd_send " Guangbin Huang
2021-12-31 10:14 ` [PATCH net-next 04/10] net: hns3: create common cmdq resource allocate/free/query APIs Guangbin Huang
2021-12-31 10:14 ` [PATCH net-next 05/10] net: hns3: refactor PF cmdq resource APIs with new common APIs Guangbin Huang
2021-12-31 10:14 ` [PATCH net-next 06/10] net: hns3: refactor VF " Guangbin Huang
2021-12-31 10:14 ` [PATCH net-next 07/10] net: hns3: create common cmdq init and uninit APIs Guangbin Huang
2021-12-31 10:14 ` [PATCH net-next 08/10] net: hns3: refactor PF cmdq init and uninit APIs with new common APIs Guangbin Huang
2021-12-31 10:14 ` [PATCH net-next 09/10] net: hns3: refactor VF " Guangbin Huang
2021-12-31 10:14 ` [PATCH net-next 10/10] net: hns3: delete the hclge_cmd.c and hclgevf_cmd.c Guangbin Huang
2021-12-31 10:22 ` [PATCH net-next 00/10] net: hns3: refactor cmdq functions in PF/VF huangguangbin (A)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211231101459.56083-1-huangguangbin2@huawei.com \
    --to=huangguangbin2@huawei.com \
    --cc=chenhao288@hisilicon.com \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lipeng321@huawei.com \
    --cc=netdev@vger.kernel.org \
    --cc=wangjie125@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.