dpdk compress code is almost ready.
https://github.com/Linaro/dpdk/tree/next-11.24-compress.
The dpdk only support deflate,
We added some hack to use zlib, which will be removed when testing deflate
- setup.alg_type = WD_ZLIB;
+ setup.alg_type = WD_DEFLATE;
- udev = wd_get_accel_dev("zlib");
+ udev = wd_get_accel_dev("deflate");
Test:
https://github.com/Linaro/dpdk/blob/next-11.24-compress/doc/guides/compressdevs/uadk.rst
Prepare hugepage, only one time
echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
echo 1024 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages
echo 1024 > /sys/devices/system/node/node2/hugepages/hugepages-2048kB/nr_hugepages
echo 1024 > /sys/devices/system/node/node3/hugepages/hugepages-2048kB/nr_hugepages
mkdir -p /mnt/huge_2mb
mount -t hugetlbfs none /mnt/huge_2mb -o pagesize=2MB
Test app
sudo dpdk-test --vdev=compress_uadk
RTE>>compressdev_autotest
RTE>>quit