compress/qat: fix return on building request error
authorTomasz Jozwiak <tomaszx.jozwiak@intel.com>
Fri, 14 Dec 2018 11:19:31 +0000 (12:19 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 19 Dec 2018 10:19:10 +0000 (11:19 +0100)
commit652b59df06ccf554d4c39ab76f8b85cc003cf9b0
tree4e4db2fcb55b0e7f76499c355d617fdb96e86f54
parent8c41455e9e610385b826271798c0b532fd59054a
compress/qat: fix return on building request error

This patch fixes error status which should be set inside
qat_comp_build_request function in case any errors are detected.
In these cases op.status is set to
RTE_COMP_OP_STATUS_INVALID_ARGS to help application debug.

Fixes: 1947bd18580b ("compress/qat: support scatter-gather buffers")
Cc: stable@dpdk.org
Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/compress/qat/qat_comp.c