From ae1374e240ee3ad3392b0d798daec3ebf0b569e8 Mon Sep 17 00:00:00 2001 From: Tomasz Cel Date: Thu, 28 Mar 2019 10:06:27 +0100 Subject: [PATCH] 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 --- drivers/compress/isal/isal_compress_pmd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; } -- 2.20.1