From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id A25654F9B; Thu, 28 Mar 2019 10:08:32 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2019 02:08:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,280,1549958400"; d="scan'208";a="159157688" Received: from tcelx-mobl1.ger.corp.intel.com (HELO localhost.localdomain) ([10.103.104.47]) by fmsmga001.fm.intel.com with ESMTP; 28 Mar 2019 02:08:30 -0700 From: Tomasz Cel To: dev@dpdk.org Cc: stable@dpdk.org, fiona.trahe@intel.com, lee.daly@intel.com, greg.b.tucker@intel.com, tomaszx.jozwiak@intel.com, tomaszx.cel@intel.com Date: Thu, 28 Mar 2019 10:06:27 +0100 Message-Id: <1553763987-24263-2-git-send-email-tomaszx.cel@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1553763987-24263-1-git-send-email-tomaszx.cel@intel.com> References: <1553593329-8075-1-git-send-email-tomaszx.cel@intel.com> <1553763987-24263-1-git-send-email-tomaszx.cel@intel.com> Subject: [dpdk-dev] [PATCH v3 1/1] compress/isal: fix compression stream initialization X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Mar 2019 09:08:33 -0000 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 --- 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 8879a42..ca1d703 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.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 3DEA8A067F for ; Thu, 28 Mar 2019 10:08:41 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9FBAC1B108; Thu, 28 Mar 2019 10:08:37 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id A25654F9B; Thu, 28 Mar 2019 10:08:32 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2019 02:08:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,280,1549958400"; d="scan'208";a="159157688" Received: from tcelx-mobl1.ger.corp.intel.com (HELO localhost.localdomain) ([10.103.104.47]) by fmsmga001.fm.intel.com with ESMTP; 28 Mar 2019 02:08:30 -0700 From: Tomasz Cel To: dev@dpdk.org Cc: stable@dpdk.org, fiona.trahe@intel.com, lee.daly@intel.com, greg.b.tucker@intel.com, tomaszx.jozwiak@intel.com, tomaszx.cel@intel.com Date: Thu, 28 Mar 2019 10:06:27 +0100 Message-Id: <1553763987-24263-2-git-send-email-tomaszx.cel@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1553763987-24263-1-git-send-email-tomaszx.cel@intel.com> References: <1553593329-8075-1-git-send-email-tomaszx.cel@intel.com> <1553763987-24263-1-git-send-email-tomaszx.cel@intel.com> Subject: [dpdk-dev] [PATCH v3 1/1] compress/isal: fix compression stream initialization X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Content-Type: text/plain; charset="UTF-8" Message-ID: <20190328090627.vMqXzH0sO1wXBM-AyrOu3CzpQ26xPfi7nno2INeSeIc@z> 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 --- 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 8879a42..ca1d703 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.7.4