DPDK patches and discussions
 help / color / mirror / Atom feed
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>
Subject: [dpdk-dev] [PATCH] compress/qat: fixed data-plane return from QAT PMD
Date: Mon,  8 Apr 2019 17:16:28 +0100	[thread overview]
Message-ID: <1554740188-12738-1-git-send-email-fiona.trahe@intel.com> (raw)
Message-ID: <20190408161628.S97Zx06AA0oPkn1P9YM-Ub4TVTbFA4GdKsGm8dtE_a8@z> (raw)

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


             reply	other threads:[~2019-04-08 16:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-08 16:16 Fiona Trahe [this message]
2019-04-08 16:16 ` Fiona Trahe
2019-04-09  7:16 ` Jozwiak, TomaszX
2019-04-09  7:16   ` Jozwiak, TomaszX
2019-04-16 14:59 Akhil Goyal
2019-04-16 14:59 ` Akhil Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1554740188-12738-1-git-send-email-fiona.trahe@intel.com \
    --to=fiona.trahe@intel.com \
    --cc=akhil.goyal@nxp.com \
    --cc=dev@dpdk.org \
    --cc=tomaszx.jozwiak@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).