1 .. SPDX-License-Identifier: BSD-3-Clause
2 Copyright(c) 2018 Cavium Networks.
4 ZLIB Compression Poll Mode Driver
5 ==================================
7 The ZLIB PMD (**librte_pmd_zlib**) provides poll mode compression &
8 decompression driver based on SW zlib library,
13 ZLIB PMD has support for:
15 Compression/Decompression algorithm:
32 * Scatter-Gather and Stateful not supported.
37 * To build DPDK with ZLIB library, the user is required to download the ``libz`` library.
38 * Use following command for installation.
41 sudo yum install zlib-devel
43 sudo apt-get install zlib1g-dev
45 * Once downloaded, the user needs to build the library.
47 * To build from sources
48 download zlib sources from http://zlib.net/ and do following before building DPDK::
56 In order to enable this virtual compression PMD, user must:
58 * Set ``CONFIG_RTE_LIBRTE_PMD_ZLIB=y`` in config/common_base.
60 To use the PMD in an application, user must:
62 * Call ``rte_vdev_init("compress_zlib")`` within the application.
64 * Use ``--vdev="compress_zlib"`` in the EAL options, which will call ``rte_vdev_init()`` internally.
66 The following parameter (optional) can be provided in the previous two calls:
68 * ``socket_id:`` Specify the socket where the memory for the device is going to be allocated
69 (by default, socket_id will be the socket where the core that is creating the PMD is running on).