mbox

[v2,00/10] drivers/qat: isolate implementations of qat generations

Message ID 20211001165954.717846-1-roy.fan.zhang@intel.com (mailing list archive)
Headers

Message

Fan Zhang Oct. 1, 2021, 4:59 p.m. UTC
This patchset introduces new qat driver structure and updates
existing symmetric crypto qat PMD.

The purpose of the change is to isolate QAT generation specific
implementations from one to another.

It is expected the changes to the specific generation driver
code does minimum impact to other generations' implementations.
Also adding the support to new features or new qat generation
hardware will have zero impact to existing functionalities.

Fan Zhang (10):
  common/qat: add gen specific data and function
  common/qat: add gen specific device implementation
  common/qat: add gen specific queue pair function
  common/qat: add gen specific queue implementation
  compress/qat: add gen specific data and function
  compress/qat: add gen specific implementation
  crypto/qat: unified device private data structure
  crypto/qat: add gen specific data and function
  crypto/qat: add gen specific implementation
  doc: update release note

 doc/guides/rel_notes/release_21_11.rst        |    4 +
 drivers/common/qat/dev/qat_dev_gen1.c         |  255 ++++
 drivers/common/qat/dev/qat_dev_gen2.c         |   37 +
 drivers/common/qat/dev/qat_dev_gen3.c         |   83 ++
 drivers/common/qat/dev/qat_dev_gen4.c         |  301 ++++
 drivers/common/qat/dev/qat_dev_gens.h         |   58 +
 drivers/common/qat/meson.build                |   15 +-
 .../qat/qat_adf/adf_transport_access_macros.h |    1 +
 .../common/qat/qat_adf/icp_qat_hw_gen4_comp.h |  195 +++
 .../qat/qat_adf/icp_qat_hw_gen4_comp_defs.h   |  300 ++++
 drivers/common/qat/qat_common.c               |    8 +
 drivers/common/qat/qat_common.h               |   16 +-
 drivers/common/qat/qat_device.c               |  185 +--
 drivers/common/qat/qat_device.h               |   42 +-
 drivers/common/qat/qat_qp.c                   |  664 ++++-----
 drivers/common/qat/qat_qp.h                   |   74 +-
 drivers/compress/qat/dev/qat_comp_pmd_gen1.c  |  177 +++
 drivers/compress/qat/dev/qat_comp_pmd_gen2.c  |   30 +
 drivers/compress/qat/dev/qat_comp_pmd_gen3.c  |   30 +
 drivers/compress/qat/dev/qat_comp_pmd_gen4.c  |  213 +++
 drivers/compress/qat/dev/qat_comp_pmd_gens.h  |   30 +
 drivers/compress/qat/qat_comp.c               |  101 +-
 drivers/compress/qat/qat_comp.h               |    8 +-
 drivers/compress/qat/qat_comp_pmd.c           |  159 +--
 drivers/compress/qat/qat_comp_pmd.h           |   76 +
 drivers/crypto/qat/README                     |    7 -
 drivers/crypto/qat/dev/qat_asym_pmd_gen1.c    |   76 +
 drivers/crypto/qat/dev/qat_crypto_pmd_gen2.c  |  224 +++
 drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c  |  164 +++
 drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c  |  125 ++
 drivers/crypto/qat/dev/qat_crypto_pmd_gens.h  |   36 +
 drivers/crypto/qat/dev/qat_sym_pmd_gen1.c     |  283 ++++
 drivers/crypto/qat/meson.build                |   26 -
 drivers/crypto/qat/qat_asym_capabilities.h    |   63 -
 drivers/crypto/qat/qat_asym_pmd.c             |  276 +---
 drivers/crypto/qat/qat_asym_pmd.h             |   55 +-
 drivers/crypto/qat/qat_crypto.c               |  172 +++
 drivers/crypto/qat/qat_crypto.h               |   91 ++
 drivers/crypto/qat/qat_sym_capabilities.h     | 1248 -----------------
 drivers/crypto/qat/qat_sym_pmd.c              |  428 +-----
 drivers/crypto/qat/qat_sym_pmd.h              |   71 +-
 drivers/crypto/qat/qat_sym_session.c          |   15 +-
 42 files changed, 3715 insertions(+), 2707 deletions(-)
 create mode 100644 drivers/common/qat/dev/qat_dev_gen1.c
 create mode 100644 drivers/common/qat/dev/qat_dev_gen2.c
 create mode 100644 drivers/common/qat/dev/qat_dev_gen3.c
 create mode 100644 drivers/common/qat/dev/qat_dev_gen4.c
 create mode 100644 drivers/common/qat/dev/qat_dev_gens.h
 create mode 100644 drivers/common/qat/qat_adf/icp_qat_hw_gen4_comp.h
 create mode 100644 drivers/common/qat/qat_adf/icp_qat_hw_gen4_comp_defs.h
 create mode 100644 drivers/compress/qat/dev/qat_comp_pmd_gen1.c
 create mode 100644 drivers/compress/qat/dev/qat_comp_pmd_gen2.c
 create mode 100644 drivers/compress/qat/dev/qat_comp_pmd_gen3.c
 create mode 100644 drivers/compress/qat/dev/qat_comp_pmd_gen4.c
 create mode 100644 drivers/compress/qat/dev/qat_comp_pmd_gens.h
 delete mode 100644 drivers/crypto/qat/README
 create mode 100644 drivers/crypto/qat/dev/qat_asym_pmd_gen1.c
 create mode 100644 drivers/crypto/qat/dev/qat_crypto_pmd_gen2.c
 create mode 100644 drivers/crypto/qat/dev/qat_crypto_pmd_gen3.c
 create mode 100644 drivers/crypto/qat/dev/qat_crypto_pmd_gen4.c
 create mode 100644 drivers/crypto/qat/dev/qat_crypto_pmd_gens.h
 create mode 100644 drivers/crypto/qat/dev/qat_sym_pmd_gen1.c
 delete mode 100644 drivers/crypto/qat/meson.build
 delete mode 100644 drivers/crypto/qat/qat_asym_capabilities.h
 create mode 100644 drivers/crypto/qat/qat_crypto.c
 create mode 100644 drivers/crypto/qat/qat_crypto.h
 delete mode 100644 drivers/crypto/qat/qat_sym_capabilities.h