From: Olivier Matz <olivier.matz@6wind.com>
To: dev@dpdk.org
Cc: venki497@gmail.com, bruce.richardson@intel.com,
anatoly.burakov@intel.com
Subject: [dpdk-dev] [PATCH v2 1/2] ring: increase maximum ring size
Date: Wed, 20 Sep 2017 13:32:15 +0200 [thread overview]
Message-ID: <20170920113216.1869-1-olivier.matz@6wind.com> (raw)
In-Reply-To: <20170907122033.17983-1-olivier.matz@6wind.com>
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 <venki497@gmail.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
v1->v2
- fix checkpatch issues
lib/librte_ring/rte_ring.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h
index 8f5a4937f..5e9b3b7b4 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
--
2.11.0
next prev parent reply other threads:[~2017-09-20 11:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-07 12:20 [dpdk-dev] [PATCH " Olivier Matz
2017-09-07 12:20 ` [dpdk-dev] [PATCH 2/2] test/ring: do not mask result of enqueue or dequeue Olivier Matz
2017-09-18 13:50 ` Burakov, Anatoly
2017-09-18 13:49 ` [dpdk-dev] [PATCH 1/2] ring: increase maximum ring size Burakov, Anatoly
2017-09-20 11:32 ` Olivier Matz [this message]
2017-09-20 11:32 ` [dpdk-dev] [PATCH v2 2/2] test/ring: do not mask result of enqueue or dequeue Olivier Matz
2017-10-05 21:25 ` [dpdk-dev] [PATCH v2 1/2] ring: increase maximum ring size Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170920113216.1869-1-olivier.matz@6wind.com \
--to=olivier.matz@6wind.com \
--cc=anatoly.burakov@intel.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=venki497@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).