compress/qat: fixed data-plane return from QAT PMD
Checks
Commit Message
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(-)
Comments
> -----Original Message-----
> From: Trahe, Fiona
> Sent: Monday, April 8, 2019 6:16 PM
> To: dev@dpdk.org
> Cc: akhil.goyal@nxp.com; Jozwiak, TomaszX <tomaszx.jozwiak@intel.com>;
> Trahe, Fiona <fiona.trahe@intel.com>
> Subject: [PATCH] compress/qat: fixed data-plane return from QAT PMD
>
> Fixes: 62ada2182a46 ("compress/qat: add dynamic sgl allocation")
>
> Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
> ---
Acked-by: Tomasz Jozwiak <tomaszx.jozwiak@intel.com>
@@ -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;