From: Olivier Matz Date: Wed, 20 Sep 2017 11:32:15 +0000 (+0200) Subject: ring: increase maximum ring size X-Git-Tag: spdx-start~2134 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=72ca23c1cee85e7d145dc611f236edf50834395c;p=dpdk.git ring: increase maximum ring size There is no reason to prevent ring from being larger than 0x0FFFFFFF. Increase the maximum size to 0x7FFFFFFF, which is the maximum possible without changing the code and the structure definition (size is stored on a uint32_t). Link: http://dpdk.org/ml/archives/dev/2017-September/074701.html Suggested-by: Venkatesh Nuthula Signed-off-by: Olivier Matz Reviewed-by: Anatoly Burakov --- diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h index 8f5a4937f3..5e9b3b7b4c 100644 --- a/lib/librte_ring/rte_ring.h +++ b/lib/librte_ring/rte_ring.h @@ -174,7 +174,7 @@ struct rte_ring { * ring space will be wasted. */ #define RING_F_EXACT_SZ 0x0004 -#define RTE_RING_SZ_MASK (unsigned)(0x0fffffff) /**< Ring size mask */ +#define RTE_RING_SZ_MASK (0x7fffffffU) /**< Ring size mask */ /* @internal defines for passing to the enqueue dequeue worker functions */ #define __IS_SP 1