[dpdk-dev] [PATCH v3 00/16] compress/qat: add compression PMD

Fiona Trahe fiona.trahe at intel.com
Thu Jul 5 19:32:44 CEST 2018


Create compression PMD for Intel QuickAssist devices
Currently only the C62x and c3xxx devices are supported.

The qat comp PMD supports
 - stateless compression and
   decompression using the Deflate algorithm with Fixed Huffman
   encoding. Dynamic huffman encoding is not supported, it
   will be added in a later patch.
 - checksum generation: Adler32, CRC32 and combined.

The compression service is hosted on a QuickAssist VF PCI
device, which is managed by code in the
drivers/common/qat directory.

This patch is dependent on the cryptodev API patch re Huffman Encoding capability
https://patches.dpdk.org/patch/42286/
 
v3 changes:
 - only commit message changes, i.e. removed ChangeId and fixed typos
  
v2 changes:
- Added check for correct firmware
- Split patchset
- Added documentation 
- removed support for scatter-gather-lists and related config flag
- Removed support for Dynamic huffman encoding and related IM buffer config flag
- Removed support for DH895xcc device

Fiona Trahe (16):
  common/qat: updated firmware headers
  compress/qat: add makefiles for PMD
  compress/qat: add meson build
  compress/qat: add xform processing
  compress/qat: create fw request and process response
  compress/qat: check that correct firmware is in use
  compress/qat: add stats functions
  compress/qat: setup queue-pairs for compression service
  compress/qat: add fns to configure and clear device
  compress/qat: add fn to return device info
  compress/qat: add enqueue/dequeue functions
  compress/qat: add device start and stop fns
  compress/qat: create and populate the ops structure
  compress/qat: add fns to create and destroy the PMD
  compress/qat: prevent device usage if incorrect firmware
  docs/qat: refactor docs adding compression guide

 MAINTAINERS                                  |   4 +
 config/common_base                           |   5 +-
 doc/guides/compressdevs/features/qat.ini     |  22 ++
 doc/guides/compressdevs/index.rst            |   1 +
 doc/guides/compressdevs/qat_comp.rst         |  49 +++
 doc/guides/cryptodevs/qat.rst                | 183 ++++++----
 doc/guides/rel_notes/release_18_08.rst       |   5 +
 drivers/common/qat/Makefile                  |  48 ++-
 drivers/common/qat/qat_adf/icp_qat_fw.h      |  69 +++-
 drivers/common/qat/qat_adf/icp_qat_fw_comp.h | 482 +++++++++++++++++++++++++++
 drivers/common/qat/qat_adf/icp_qat_hw.h      | 130 +++++++-
 drivers/common/qat/qat_device.h              |   4 +
 drivers/common/qat/qat_qp.c                  |  11 +-
 drivers/common/qat/qat_qp.h                  |   5 +
 drivers/compress/meson.build                 |   2 +-
 drivers/compress/qat/meson.build             |  18 +
 drivers/compress/qat/qat_comp.c              | 359 ++++++++++++++++++++
 drivers/compress/qat/qat_comp.h              |  56 ++++
 drivers/compress/qat/qat_comp_pmd.c          | 405 ++++++++++++++++++++++
 drivers/compress/qat/qat_comp_pmd.h          |  39 +++
 drivers/compress/qat/rte_pmd_qat_version.map |   3 +
 drivers/crypto/qat/meson.build               |  10 +-
 drivers/crypto/qat/rte_pmd_qat_version.map   |   3 -
 test/test/test_cryptodev.c                   |   6 +-
 24 files changed, 1804 insertions(+), 115 deletions(-)
 create mode 100644 doc/guides/compressdevs/features/qat.ini
 create mode 100644 doc/guides/compressdevs/qat_comp.rst
 create mode 100644 drivers/common/qat/qat_adf/icp_qat_fw_comp.h
 create mode 100644 drivers/compress/qat/meson.build
 create mode 100644 drivers/compress/qat/qat_comp.c
 create mode 100644 drivers/compress/qat/qat_comp.h
 create mode 100644 drivers/compress/qat/qat_comp_pmd.c
 create mode 100644 drivers/compress/qat/qat_comp_pmd.h
 create mode 100644 drivers/compress/qat/rte_pmd_qat_version.map
 delete mode 100644 drivers/crypto/qat/rte_pmd_qat_version.map

-- 
2.7.4



More information about the dev mailing list