Add zsda compressdev capabilities.<br /> <br />Signed-off-by: Hanxiao Li <li.hanxiao@zte.com.cn> <br />---<br /> doc/guides/compressdevs/features/zsda.ini |  9 +++++++++<br /> doc/guides/compressdevs/zsda.rst          | 23 +++++++++++++++++++++++<br /> doc/guides/rel_notes/release_24_11.rst    |  7 +++++++<br /> drivers/compress/zsda/zsda_comp_pmd.c     | 15 ++++++++++++++-<br /> 4 files changed, 53 insertions(+), 1 deletion(-)<br /> <br />diff --git a/doc/guides/compressdevs/features/zsda.ini b/doc/guides/compressdevs/features/zsda.ini<br />index 5cc9a3b1a6..3b087ea7f9 100644<br />--- a/doc/guides/compressdevs/features/zsda.ini<br />+++ b/doc/guides/compressdevs/features/zsda.ini<br />@@ -4,3 +4,12 @@<br /> ; Supported features of 'ZSDA' compression driver.<br /> ;<br /> [Features]<br />+HW Accelerated         = Y<br />+OOP SGL In SGL Out     = Y<br />+OOP SGL In LB  Out     = Y<br />+OOP LB  In SGL Out     = Y<br />+Deflate                = Y<br />+Adler32                = Y<br />+Crc32                  = Y<br />+Fixed                  = Y<br />+Dynamic                = Y<br />diff --git a/doc/guides/compressdevs/zsda.rst b/doc/guides/compressdevs/zsda.rst<br />index c02423d650..30d1c55766 100644<br />--- a/doc/guides/compressdevs/zsda.rst<br />+++ b/doc/guides/compressdevs/zsda.rst<br />@@ -13,6 +13,29 @@ support for the following hardware accelerator devices:<br /> Features<br /> --------<br />  <br />+ZSDA compression PMD has support for:<br />+<br />+Compression/Decompression algorithm:<br />+<br />+    * DEFLATE - using Fixed and Dynamic Huffman encoding<br />+<br />+Checksum generation:<br />+<br />+    * CRC32, Adler32<br />+<br />+Huffman code type:<br />+<br />+* FIXED<br />+* DYNAMIC<br />+<br />+<br />+Limitations<br />+-----------<br />+<br />+* Compressdev level 0, no compression, is not supported.<br />+* No BSD support as BSD ZSDA kernel driver not available.<br />+* Stateful is not supported.<br />+<br />  <br /> Installation<br /> ------------<br />diff --git a/doc/guides/rel_notes/release_24_11.rst b/doc/guides/rel_notes/release_24_11.rst<br />index 0ff70d9057..583e509a45 100644<br />--- a/doc/guides/rel_notes/release_24_11.rst<br />+++ b/doc/guides/rel_notes/release_24_11.rst<br />@@ -24,6 +24,13 @@ DPDK Release 24.11<br /> New Features<br /> ------------<br />  <br />+* **Added ZTE Storage Data Accelerator(ZSDA) device driver.**<br />+<br />+  * Added a new compress driver for ZSDA devices to support<br />+    the deflate compression and decompression algorithm.<br />+<br />+    See the :doc:`../compressdevs/zsda` guide for more details on the new driver.<br />+<br /> .. This section should contain new features added in this release.<br />    Sample format:<br />  <br />diff --git a/drivers/compress/zsda/zsda_comp_pmd.c b/drivers/compress/zsda/zsda_comp_pmd.c<br />index ea3de2f505..85c934ace1 100644<br />--- a/drivers/compress/zsda/zsda_comp_pmd.c<br />+++ b/drivers/compress/zsda/zsda_comp_pmd.c<br />@@ -9,6 +9,19 @@<br /> #include "zsda_comp_pmd.h" <br /> #include "zsda_comp.h" <br />  <br />+static const struct rte_compressdev_capabilities zsda_comp_capabilities[] = {<br />+    {<br />+        .algo = RTE_COMP_ALGO_DEFLATE,<br />+        .comp_feature_flags = RTE_COMP_FF_HUFFMAN_DYNAMIC |<br />+                            RTE_COMP_FF_OOP_SGL_IN_SGL_OUT |<br />+                            RTE_COMP_FF_OOP_SGL_IN_LB_OUT |<br />+                            RTE_COMP_FF_OOP_LB_IN_SGL_OUT |<br />+                            RTE_COMP_FF_CRC32_CHECKSUM |<br />+                            RTE_COMP_FF_ADLER32_CHECKSUM,<br />+        .window_size = {.min = 15, .max = 15, .increment = 0},<br />+    },<br />+};<br />+<br /> static int<br /> zsda_comp_xform_size(void)<br /> {<br />@@ -405,7 +418,7 @@ zsda_comp_dev_create(struct zsda_pci_device *zsda_pci_dev)<br />     comp_dev->zsda_pci_dev = zsda_pci_dev;<br />     comp_dev->compressdev = compressdev;<br />  <br />-    capabilities = NULL;<br />+    capabilities = zsda_comp_capabilities;<br />  <br />     comp_dev->capa_mz = rte_memzone_lookup(capa_memz_name);<br />     if (comp_dev->capa_mz == NULL) {<br />--  <br />2.27.0<br />