From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <fiona.trahe@intel.com>
Received: from mga17.intel.com (mga17.intel.com [192.55.52.151])
 by dpdk.org (Postfix) with ESMTP id 0C2522BCE
 for <dev@dpdk.org>; Mon,  8 Apr 2019 18:16:33 +0200 (CEST)
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga007.jf.intel.com ([10.7.209.58])
 by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 08 Apr 2019 09:16:33 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.60,325,1549958400"; d="scan'208";a="129599601"
Received: from sivswdev09.ir.intel.com (HELO localhost.localdomain)
 ([10.237.217.48])
 by orsmga007.jf.intel.com with ESMTP; 08 Apr 2019 09:16:31 -0700
From: Fiona Trahe <fiona.trahe@intel.com>
To: dev@dpdk.org
Cc: akhil.goyal@nxp.com, tomaszx.jozwiak@intel.com,
 Fiona Trahe <fiona.trahe@intel.com>
Date: Mon,  8 Apr 2019 17:16:28 +0100
Message-Id: <1554740188-12738-1-git-send-email-fiona.trahe@intel.com>
X-Mailer: git-send-email 1.7.0.7
Subject: [dpdk-dev] [PATCH] compress/qat: fixed data-plane return from QAT
	PMD
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Apr 2019 16:16:34 -0000

Fixes: 62ada2182a46 ("compress/qat: add dynamic sgl allocation")

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
---
 drivers/compress/qat/qat_comp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/compress/qat/qat_comp.c b/drivers/compress/qat/qat_comp.c
index 2fadb02..dd0fe1b 100644
--- a/drivers/compress/qat/qat_comp.c
+++ b/drivers/compress/qat/qat_comp.c
@@ -93,7 +93,7 @@
 				QAT_DP_LOG(ERR, "QAT PMD can't allocate memory"
 					   " for %d elements of SGL",
 					   op->m_src->nb_segs);
-				op->status = RTE_COMP_OP_STATUS_INVALID_ARGS;
+				op->status = RTE_COMP_OP_STATUS_ERROR;
 				return -ENOMEM;
 			}
 			/* new SGL is valid now */
@@ -128,8 +128,8 @@
 				QAT_DP_LOG(ERR, "QAT PMD can't allocate memory"
 					   " for %d elements of SGL",
 					   op->m_dst->nb_segs);
-				op->status = RTE_COMP_OP_STATUS_INVALID_ARGS;
-				return -EINVAL;
+				op->status = RTE_COMP_OP_STATUS_ERROR;
+				return -ENOMEM;
 			}
 			/* new SGL is valid now */
 			cookie->qat_sgl_dst_d = (struct qat_sgl *)tmp;
-- 
1.7.0.7

From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by dpdk.space (Postfix) with ESMTP id D5FE4A0096
	for <public@inbox.dpdk.org>; Mon,  8 Apr 2019 18:16:36 +0200 (CEST)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 427232C24;
	Mon,  8 Apr 2019 18:16:36 +0200 (CEST)
Received: from mga17.intel.com (mga17.intel.com [192.55.52.151])
 by dpdk.org (Postfix) with ESMTP id 0C2522BCE
 for <dev@dpdk.org>; Mon,  8 Apr 2019 18:16:33 +0200 (CEST)
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
Received: from orsmga007.jf.intel.com ([10.7.209.58])
 by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
 08 Apr 2019 09:16:33 -0700
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.60,325,1549958400"; d="scan'208";a="129599601"
Received: from sivswdev09.ir.intel.com (HELO localhost.localdomain)
 ([10.237.217.48])
 by orsmga007.jf.intel.com with ESMTP; 08 Apr 2019 09:16:31 -0700
From: Fiona Trahe <fiona.trahe@intel.com>
To: dev@dpdk.org
Cc: akhil.goyal@nxp.com, tomaszx.jozwiak@intel.com,
 Fiona Trahe <fiona.trahe@intel.com>
Date: Mon,  8 Apr 2019 17:16:28 +0100
Message-Id: <1554740188-12738-1-git-send-email-fiona.trahe@intel.com>
X-Mailer: git-send-email 1.7.0.7
Subject: [dpdk-dev] [PATCH] compress/qat: fixed data-plane return from QAT
	PMD
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <20190408161628.S97Zx06AA0oPkn1P9YM-Ub4TVTbFA4GdKsGm8dtE_a8@z>

Fixes: 62ada2182a46 ("compress/qat: add dynamic sgl allocation")

Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
---
 drivers/compress/qat/qat_comp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/compress/qat/qat_comp.c b/drivers/compress/qat/qat_comp.c
index 2fadb02..dd0fe1b 100644
--- a/drivers/compress/qat/qat_comp.c
+++ b/drivers/compress/qat/qat_comp.c
@@ -93,7 +93,7 @@
 				QAT_DP_LOG(ERR, "QAT PMD can't allocate memory"
 					   " for %d elements of SGL",
 					   op->m_src->nb_segs);
-				op->status = RTE_COMP_OP_STATUS_INVALID_ARGS;
+				op->status = RTE_COMP_OP_STATUS_ERROR;
 				return -ENOMEM;
 			}
 			/* new SGL is valid now */
@@ -128,8 +128,8 @@
 				QAT_DP_LOG(ERR, "QAT PMD can't allocate memory"
 					   " for %d elements of SGL",
 					   op->m_dst->nb_segs);
-				op->status = RTE_COMP_OP_STATUS_INVALID_ARGS;
-				return -EINVAL;
+				op->status = RTE_COMP_OP_STATUS_ERROR;
+				return -ENOMEM;
 			}
 			/* new SGL is valid now */
 			cookie->qat_sgl_dst_d = (struct qat_sgl *)tmp;
-- 
1.7.0.7