compress/isal: fix compression stream initialization
authorTomasz Cel <tomaszx.cel@intel.com>
Thu, 28 Mar 2019 09:06:27 +0000 (10:06 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Tue, 2 Apr 2019 14:50:24 +0000 (16:50 +0200)
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 <tomaszx.cel@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
drivers/compress/isal/isal_compress_pmd.c

index 8879a42..ca1d703 100644 (file)
@@ -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;
 }