net/bnxt: modify VXLAN decap for multichannel mode
[dpdk.git] / drivers / net / i40e / i40e_ethdev.c
index 5b0a7f2..7b230e2 100644 (file)
@@ -4554,13 +4554,15 @@ i40e_allocate_dma_mem_d(__rte_unused struct i40e_hw *hw,
                        u64 size,
                        u32 alignment)
 {
+       static uint64_t i40e_dma_memzone_id;
        const struct rte_memzone *mz = NULL;
        char z_name[RTE_MEMZONE_NAMESIZE];
 
        if (!mem)
                return I40E_ERR_PARAM;
 
-       snprintf(z_name, sizeof(z_name), "i40e_dma_%"PRIu64, rte_rand());
+       snprintf(z_name, sizeof(z_name), "i40e_dma_%" PRIu64,
+               __atomic_fetch_add(&i40e_dma_memzone_id, 1, __ATOMIC_RELAXED));
        mz = rte_memzone_reserve_bounded(z_name, size, SOCKET_ID_ANY,
                        RTE_MEMZONE_IOVA_CONTIG, alignment, RTE_PGSIZE_2M);
        if (!mz)