[v25,01/13] config: add zsda device number
Checks
Commit Message
Add the number of zsda devices.
Signed-off-by: Hanxiao Li <li.hanxiao@zte.com.cn>
---
config/rte_config.h | 4 ++++
1 file changed, 4 insertions(+)
--
2.27.0
Comments
> v26:
> - try to ensure all patches gets compiled incrementally.
Series Acked-by: Akhil Goyal <gakhil@marvell.com>
Updated the patch title while merging and fix release notes.
Applied to dpdk-next-crypto
Thanks.
>
> v25:
> - replace the ``__rte_packed`` macro.
> - fix an extra line at end of file in patch 11.
>
> v24:
> - Try to resolve the issue in v23 by sending all patches at once
>
> v23:
> - modify funcitons name to move the verb to the end
> - move the qp_setup and qp_release calls in same patch
> - make the queue setup APIs common with one function.
> - Fix some code in original patch.
>
> v22:
> - modify misspelled errors.
>
> v21:
> - modify some errors.
>
> v20
> - add release note which was forgot in last version
>
> v19:
> - delete cryptodev drivers and prepare to submit it next time.
> - only submit compressdev driver this time.
> - resplit the patches.
>
> v18:
> - add code in drivers/meson.build to compile zsda drivers.
> - make every patch compile without any warnings or errors.
>
> v17:
> - fix some spelling errors
>
> v16:
> - resplit patches.
> - complete documentation which is yet there in that patch.
> - every patch should compile without any warnings or errors.
> - delete unused comments.
>
> v15:
> - split to more patches.
>
> v14:
> - Uniform Byte Alignment.
>
> v13:
> - resolve some comiler warnings that are being suppressed.
>
> v12:
> - use RTE_LOG_LINE_PREFIX in logging macro.
> - delete the check for null with rte_mempool_free.
> - delete some unused initial values.
>
> v11:
> - use RTE_LOG_LINE in logging macro.
> - fix some known bugs.
>
> v10:
> - delete new blank line at EOF
> - Cleaning up some code in zsda_log.h
>
> v9:
> - add a new feature in default.ini.
> - Re-split the patch according to the new PMD guidelines
> https://patches.dpdk.org/project/dpdk/patch/20241006184
> <https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__patches.dpdk.org_project_dpdk_patch_20241006184&d=DwQGaQ&c=nKjW
> ec2b6R0mOyPaz7xtfQ&r=DnL7Si2wl_PRwpZ9TWey3eu68gBzn7DkPwuqhd6WNy
> o&m=GJzys3oTRejDWk0WV-b9C13-
> TIs1lw19XiYRU4yMLqjXMyoxbFFXMOIDzLmxYmx1&s=mvVrBeMzFF4Q_9r4j9MC
> UtDWBwQvOgWw14zcxTrtQyY&e=>
> 254.53499-1-nandinipersad361@gmail.com/
> - Split SM4-XTS tests into a new series to releases.
> - Separate out datapath(enqueue/dequeue) as a separate patch.
>
> v8:
> - fix some errors in cryptodevs/features/zsda.ini.
>
> v7:
> - add release notes and some documentations.
> - add MAINTAINERS context in the patch where the file/folder is added.
> - add files in meason.build which are included in the patch only.
> - add a check for unsupported on Windows.
> - notice the implicit cast in C.
> - add cover letter.
> - compile each of the patches individually.
>
>
> Hanxiao Li (13):
> config: add zsda device number
> common/zsda: add zsdadev driver
> common/zsda: add logging macros
> common/zsda: add functions to operate hardware queue
> common/zsda: add definition and use of msg chan.
> compress/zsda: add zsda compressdev driver skeleton
> compress/zsda: add zsda compressdev dev ops
> compress/zsda: add zsda compressdev stats ops
> compress/zsda: add zsda compressdev xform ops
> compress/zsda: add zsda compressdev qp ops
> compress/zsda: add zsda compressdev enqueue datapath
> compress/zsda: add zsda compressdev dequeue datapath
> compress/zsda: add zsda compressdev capabilities
>
> MAINTAINERS | 6 +
> config/rte_config.h | 4 +
> doc/guides/compressdevs/features/zsda.ini | 15 +
> doc/guides/compressdevs/index.rst | 1 +
> doc/guides/compressdevs/zsda.rst | 194 +++++
> doc/guides/rel_notes/release_25_03.rst | 7 +
> drivers/common/zsda/meson.build | 26 +
> drivers/common/zsda/zsda_device.c | 209 +++++
> drivers/common/zsda/zsda_device.h | 59 ++
> drivers/common/zsda/zsda_logs.c | 19 +
> drivers/common/zsda/zsda_logs.h | 27 +
> drivers/common/zsda/zsda_qp.c | 946 ++++++++++++++++++++++
> drivers/common/zsda/zsda_qp.h | 186 +++++
> drivers/common/zsda/zsda_qp_common.c | 192 +++++
> drivers/common/zsda/zsda_qp_common.h | 189 +++++
> drivers/compress/zsda/zsda_comp.c | 388 +++++++++
> drivers/compress/zsda/zsda_comp.h | 45 +
> drivers/compress/zsda/zsda_comp_pmd.c | 418 ++++++++++
> drivers/compress/zsda/zsda_comp_pmd.h | 41 +
> drivers/meson.build | 1 +
> 20 files changed, 2973 insertions(+)
> create mode 100644 doc/guides/compressdevs/features/zsda.ini
> create mode 100644 doc/guides/compressdevs/zsda.rst
> create mode 100644 drivers/common/zsda/meson.build
> create mode 100644 drivers/common/zsda/zsda_device.c
> create mode 100644 drivers/common/zsda/zsda_device.h
> create mode 100644 drivers/common/zsda/zsda_logs.c
> create mode 100644 drivers/common/zsda/zsda_logs.h
> create mode 100644 drivers/common/zsda/zsda_qp.c
> create mode 100644 drivers/common/zsda/zsda_qp.h
> create mode 100644 drivers/common/zsda/zsda_qp_common.c
> create mode 100644 drivers/common/zsda/zsda_qp_common.h
> create mode 100644 drivers/compress/zsda/zsda_comp.c
> create mode 100644 drivers/compress/zsda/zsda_comp.h
> create mode 100644 drivers/compress/zsda/zsda_comp_pmd.c
> create mode 100644 drivers/compress/zsda/zsda_comp_pmd.h
>
> --
> 2.27.0
@@ -119,6 +119,10 @@
#define RTE_PMD_QAT_COMP_SGL_MAX_SEGMENTS 16
#define RTE_PMD_QAT_COMP_IM_BUFFER_SIZE 65536
+/* ZSDA device */
+/* Max. number of ZSDA devices which can be attached */
+#define RTE_PMD_ZSDA_MAX_PCI_DEVICES 256
+
/* virtio crypto defines */
#define RTE_MAX_VIRTIO_CRYPTO 32