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>
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;
op->output_chksum = qp->stream->internal_state.crc;
}
- isal_deflate_reset(qp->stream);
-
return ret;
}
op->produced = qp->state->total_out;
op->output_chksum = qp->state->crc;
- isal_inflate_reset(qp->state);
-
return ret;
}