compress/qat: enable compression on GEN3
authorAdam Dybkowski <adamx.dybkowski@intel.com>
Wed, 28 Apr 2021 14:41:42 +0000 (15:41 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 5 May 2021 14:45:36 +0000 (16:45 +0200)
commitda573c0e4205d818cd602eaa27c720896f3b6f1c
tree3d8577fd00202ca37b3514b68ba14758e3958dcc
parentcd218e52c49600039c42d3b57b42704683e41a0f
compress/qat: enable compression on GEN3

This patch enables the compression on QAT GEN3 (on hardware
versions that support it) and changes the error message shown
on older hardware versions that don't support the compression.

It also fixes the crash that happened on IM buffer allocation
failure (not enough memory) during the PMD cleaning phase.

Fixes: a124830a6f00 ("compress/qat: enable dynamic huffman encoding")
Fixes: 352332744c3a ("compress/qat: add dynamic SGL allocation")
Cc: stable@dpdk.org
Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
drivers/compress/qat/qat_comp.c
drivers/compress/qat/qat_comp_pmd.c