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 D5FE4A0096 for ; 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 ; 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 To: dev@dpdk.org Cc: akhil.goyal@nxp.com, tomaszx.jozwiak@intel.com, Fiona Trahe 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 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: <20190408161628.S97Zx06AA0oPkn1P9YM-Ub4TVTbFA4GdKsGm8dtE_a8@z> Fixes: 62ada2182a46 ("compress/qat: add dynamic sgl allocation") Signed-off-by: Fiona Trahe --- 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