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_compress_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 To use the PMD in an application, user must:
58 * Call ``rte_vdev_init("compress_zlib")`` within the application.
60 * Use ``--vdev="compress_zlib"`` in the EAL options, which will call ``rte_vdev_init()`` internally.
62 The following parameter (optional) can be provided in the previous two calls:
64 * ``socket_id:`` Specify the socket where the memory for the device is going to be allocated
65 (by default, socket_id will be the socket where the core that is creating the PMD is running on).