[dpdk-dev,v3,16/68] net/cxgbe: use contiguous allocation for DMA memory
Checks
Commit Message
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
Notes:
v3:
- Moved patch earlier in the patchset
- Allowed experimental API's in the makefile
drivers/net/cxgbe/Makefile | 3 +++
drivers/net/cxgbe/sge.c | 3 ++-
2 files changed, 5 insertions(+), 1 deletion(-)
@@ -18,6 +18,9 @@ EXPORT_MAP := rte_pmd_cxgbe_version.map
LIBABIVER := 1
+# contiguous memzone reserve API are not yet stable
+CFLAGS += -DALLOW_EXPERIMENTAL_API
+
ifeq ($(CONFIG_RTE_TOOLCHAIN_ICC),y)
#
# CFLAGS for icc
@@ -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_contig(z_name, len, socket_id, 0,
+ 4096);
if (!tz)
return NULL;