From: Anatoly Burakov Date: Wed, 11 Apr 2018 12:29:52 +0000 (+0100) Subject: net/cxgbe: use contiguous allocation for DMA memory X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=72c280fac20f817cf825da2c7c440d0baa901447;p=dpdk.git net/cxgbe: use contiguous allocation for DMA memory All hardware drivers should allocate IOVA-contiguous memzones for their hardware resources. Signed-off-by: Anatoly Burakov Tested-by: Santosh Shukla Tested-by: Hemant Agrawal Tested-by: Gowrishankar Muthukrishnan --- diff --git a/drivers/net/cxgbe/sge.c b/drivers/net/cxgbe/sge.c index 83e26d0c61..85846fcf4f 100644 --- a/drivers/net/cxgbe/sge.c +++ b/drivers/net/cxgbe/sge.c @@ -1344,7 +1344,8 @@ static void *alloc_ring(size_t nelem, size_t elem_size, * handle the maximum ring size is allocated in order to allow for * resizing in later calls to the queue setup function. */ - tz = rte_memzone_reserve_aligned(z_name, len, socket_id, 0, 4096); + tz = rte_memzone_reserve_aligned(z_name, len, socket_id, + RTE_MEMZONE_IOVA_CONTIG, 4096); if (!tz) return NULL;