From: Marko Kovacevic Date: Thu, 24 Jan 2019 15:03:04 +0000 (+0000) Subject: compress/qat: fix setup inter buffers X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=25e9517961d9cebcf643952a3e9a76f7a3de951b;p=dpdk.git compress/qat: fix setup inter buffers This patch fixes qat comp setup inter_buffers memory allocation size to a broader size then just 2MB Fixes: a124830a6f00 ("compress/qat: enable dynamic huffman encoding") Cc: stable@dpdk.org Signed-off-by: Marko Kovacevic Acked-by: Fiona Trahe --- diff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c index 27c885625f..d45cd675b9 100644 --- a/drivers/compress/qat/qat_comp_pmd.c +++ b/drivers/compress/qat/qat_comp_pmd.c @@ -185,7 +185,7 @@ qat_comp_setup_inter_buffers(struct qat_comp_dev_private *comp_dev, memzone = rte_memzone_reserve_aligned(inter_buff_mz_name, full_size, comp_dev->compressdev->data->socket_id, - RTE_MEMZONE_2MB, QAT_64_BYTE_ALIGN); + RTE_MEMZONE_IOVA_CONTIG, QAT_64_BYTE_ALIGN); if (memzone == NULL) { QAT_LOG(ERR, "Can't allocate intermediate buffers" " for device %s", comp_dev->qat_dev->name);