compress/qat: add fallback to fixed compression
authorTomasz Jozwiak <tomaszx.jozwiak@intel.com>
Fri, 15 Feb 2019 09:44:32 +0000 (10:44 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 22 Mar 2019 13:27:46 +0000 (14:27 +0100)
commita720e6740afcd6d21955d188c6e6a7136fcc7d6c
treec6bb26487e2f3d07811dc87f2732c622a26686e6
parentfff7b0ddce74ce4e8e1185763fec0f7b72b34ecd
compress/qat: add fallback to fixed compression

This patch adds fallback to fixed compression
feature during dynamic compression, when the input data size
is greater than IM buffer size / 1.1. This feature doesn't
stop compression proccess when IM buffer can be too small
to handle produced data.

Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
doc/guides/cryptodevs/qat.rst
drivers/compress/qat/qat_comp.c
drivers/compress/qat/qat_comp.h