mbox series

[v7,00/19] net/idpf: introduce idpf common modle

Message ID 20230206054618.40975-1-beilei.xing@intel.com (mailing list archive)
Headers
Series net/idpf: introduce idpf common modle |

Message

Xing, Beilei Feb. 6, 2023, 5:45 a.m. UTC
  From: Beilei Xing <beilei.xing@intel.com>

Refactor idpf pmd by introducing idpf common module, which will be also
consumed by a new PMD - CPFL (Control Plane Function Library) PMD.

v2 changes:
 - Refine irq map/unmap functions.
 - Fix cross compile issue.
v3 changes:
 - Embed vport_info field into the vport structure.
 - Refine APIs' name and order in version.map.
 - Refine commit log.
v4 changes:
 - Refine commit log.
v5 changes:
 - Refine version.map.
 - Fix typo.
 - Return error log.
v6 changes:
 - Refine API name in common module.
v7 changes:
 - Change new files' copy right date to 2023.
 - Correct format for meson.build.
 - Change rte_atomic usages to compiler atomic built-ins.

Beilei Xing (19):
  common/idpf: add adapter structure
  common/idpf: add vport structure
  common/idpf: add virtual channel functions
  common/idpf: introduce adapter init and deinit
  common/idpf: add vport init/deinit
  common/idpf: add config RSS
  common/idpf: add irq map/unmap
  common/idpf: support get packet type
  common/idpf: add vport info initialization
  common/idpf: add vector flags in vport
  common/idpf: add rxq and txq struct
  common/idpf: add help functions for queue setup and release
  common/idpf: add Rx and Tx data path
  common/idpf: add vec queue setup
  common/idpf: add avx512 for single queue model
  common/idpf: refine API name for vport functions
  common/idpf: refine API name for queue config module
  common/idpf: refine API name for data path module
  common/idpf: refine API name for virtual channel functions

 drivers/common/idpf/base/idpf_controlq_api.h  |    6 -
 drivers/common/idpf/base/meson.build          |    2 +-
 drivers/common/idpf/idpf_common_device.c      |  655 +++++
 drivers/common/idpf/idpf_common_device.h      |  195 ++
 drivers/common/idpf/idpf_common_logs.h        |   47 +
 drivers/common/idpf/idpf_common_rxtx.c        | 1458 ++++++++++++
 drivers/common/idpf/idpf_common_rxtx.h        |  278 +++
 .../idpf/idpf_common_rxtx_avx512.c}           |   26 +-
 .../idpf/idpf_common_virtchnl.c}              |  947 ++------
 drivers/common/idpf/idpf_common_virtchnl.h    |   52 +
 drivers/common/idpf/meson.build               |   35 +
 drivers/common/idpf/version.map               |   61 +-
 drivers/net/idpf/idpf_ethdev.c                |  552 +----
 drivers/net/idpf/idpf_ethdev.h                |  194 +-
 drivers/net/idpf/idpf_logs.h                  |   24 -
 drivers/net/idpf/idpf_rxtx.c                  | 2107 +++--------------
 drivers/net/idpf/idpf_rxtx.h                  |  253 +-
 drivers/net/idpf/meson.build                  |   18 -
 18 files changed, 3441 insertions(+), 3469 deletions(-)
 create mode 100644 drivers/common/idpf/idpf_common_device.c
 create mode 100644 drivers/common/idpf/idpf_common_device.h
 create mode 100644 drivers/common/idpf/idpf_common_logs.h
 create mode 100644 drivers/common/idpf/idpf_common_rxtx.c
 create mode 100644 drivers/common/idpf/idpf_common_rxtx.h
 rename drivers/{net/idpf/idpf_rxtx_vec_avx512.c => common/idpf/idpf_common_rxtx_avx512.c} (97%)
 rename drivers/{net/idpf/idpf_vchnl.c => common/idpf/idpf_common_virtchnl.c} (51%)
 create mode 100644 drivers/common/idpf/idpf_common_virtchnl.h
  

Comments

Qi Zhang Feb. 6, 2023, 1:15 p.m. UTC | #1
> -----Original Message-----
> From: Xing, Beilei <beilei.xing@intel.com>
> Sent: Monday, February 6, 2023 1:46 PM
> To: Wu, Jingjing <jingjing.wu@intel.com>
> Cc: dev@dpdk.org; Zhang, Qi Z <qi.z.zhang@intel.com>; Xing, Beilei
> <beilei.xing@intel.com>
> Subject: [PATCH v7 00/19] net/idpf: introduce idpf common modle
> 
> From: Beilei Xing <beilei.xing@intel.com>
> 
> Refactor idpf pmd by introducing idpf common module, which will be also
> consumed by a new PMD - CPFL (Control Plane Function Library) PMD.
> 
> v2 changes:
>  - Refine irq map/unmap functions.
>  - Fix cross compile issue.
> v3 changes:
>  - Embed vport_info field into the vport structure.
>  - Refine APIs' name and order in version.map.
>  - Refine commit log.
> v4 changes:
>  - Refine commit log.
> v5 changes:
>  - Refine version.map.
>  - Fix typo.
>  - Return error log.
> v6 changes:
>  - Refine API name in common module.
> v7 changes:
>  - Change new files' copy right date to 2023.
>  - Correct format for meson.build.
>  - Change rte_atomic usages to compiler atomic built-ins.
> 
> Beilei Xing (19):
>   common/idpf: add adapter structure
>   common/idpf: add vport structure
>   common/idpf: add virtual channel functions
>   common/idpf: introduce adapter init and deinit
>   common/idpf: add vport init/deinit
>   common/idpf: add config RSS
>   common/idpf: add irq map/unmap
>   common/idpf: support get packet type
>   common/idpf: add vport info initialization
>   common/idpf: add vector flags in vport
>   common/idpf: add rxq and txq struct
>   common/idpf: add help functions for queue setup and release
>   common/idpf: add Rx and Tx data path
>   common/idpf: add vec queue setup
>   common/idpf: add avx512 for single queue model
>   common/idpf: refine API name for vport functions
>   common/idpf: refine API name for queue config module
>   common/idpf: refine API name for data path module
>   common/idpf: refine API name for virtual channel functions
> 
>  drivers/common/idpf/base/idpf_controlq_api.h  |    6 -
>  drivers/common/idpf/base/meson.build          |    2 +-
>  drivers/common/idpf/idpf_common_device.c      |  655 +++++
>  drivers/common/idpf/idpf_common_device.h      |  195 ++
>  drivers/common/idpf/idpf_common_logs.h        |   47 +
>  drivers/common/idpf/idpf_common_rxtx.c        | 1458 ++++++++++++
>  drivers/common/idpf/idpf_common_rxtx.h        |  278 +++
>  .../idpf/idpf_common_rxtx_avx512.c}           |   26 +-
>  .../idpf/idpf_common_virtchnl.c}              |  947 ++------
>  drivers/common/idpf/idpf_common_virtchnl.h    |   52 +
>  drivers/common/idpf/meson.build               |   35 +
>  drivers/common/idpf/version.map               |   61 +-
>  drivers/net/idpf/idpf_ethdev.c                |  552 +----
>  drivers/net/idpf/idpf_ethdev.h                |  194 +-
>  drivers/net/idpf/idpf_logs.h                  |   24 -
>  drivers/net/idpf/idpf_rxtx.c                  | 2107 +++--------------
>  drivers/net/idpf/idpf_rxtx.h                  |  253 +-
>  drivers/net/idpf/meson.build                  |   18 -
>  18 files changed, 3441 insertions(+), 3469 deletions(-)  create mode 100644
> drivers/common/idpf/idpf_common_device.c
>  create mode 100644 drivers/common/idpf/idpf_common_device.h
>  create mode 100644 drivers/common/idpf/idpf_common_logs.h
>  create mode 100644 drivers/common/idpf/idpf_common_rxtx.c
>  create mode 100644 drivers/common/idpf/idpf_common_rxtx.h
>  rename drivers/{net/idpf/idpf_rxtx_vec_avx512.c =>
> common/idpf/idpf_common_rxtx_avx512.c} (97%)  rename
> drivers/{net/idpf/idpf_vchnl.c => common/idpf/idpf_common_virtchnl.c}
> (51%)  create mode 100644 drivers/common/idpf/idpf_common_virtchnl.h
> 
> --
> 2.26.2

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi