From: Tomasz Cel Date: Thu, 28 Mar 2019 09:06:27 +0000 (+0100) Subject: compress/isal: fix compression stream initialization X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ae1374e240ee3ad3392b0d798daec3ebf0b569e8;p=dpdk.git compress/isal: fix compression stream initialization This patch fixes ISAL internal state fields initialization. Fixes: dc49e6aa4879 ("compress/isal: add ISA-L compression functionality") Cc: stable@dpdk.org Signed-off-by: Tomasz Cel Acked-by: Fiona Trahe --- diff --git a/drivers/compress/isal/isal_compress_pmd.c b/drivers/compress/isal/isal_compress_pmd.c index 8879a42d80..ca1d703544 100644 --- a/drivers/compress/isal/isal_compress_pmd.c +++ b/drivers/compress/isal/isal_compress_pmd.c @@ -412,7 +412,7 @@ process_isal_deflate(struct rte_comp_op *op, struct isal_comp_qp *qp, uint8_t *temp_level_buf = qp->stream->level_buf; /* Initialize compression stream */ - isal_deflate_stateless_init(qp->stream); + isal_deflate_init(qp->stream); qp->stream->level_buf = temp_level_buf; @@ -514,8 +514,6 @@ process_isal_deflate(struct rte_comp_op *op, struct isal_comp_qp *qp, op->output_chksum = qp->stream->internal_state.crc; } - isal_deflate_reset(qp->stream); - return ret; } @@ -598,8 +596,6 @@ process_isal_inflate(struct rte_comp_op *op, struct isal_comp_qp *qp, op->produced = qp->state->total_out; op->output_chksum = qp->state->crc; - isal_inflate_reset(qp->state); - return ret; }