Re: [dpdk-dev] [PATCH v2 1/5] ring: allow rings with non power-of-2 sizes

2017-07-03 Thread Olivier Matz
On Fri, 30 Jun 2017 16:06:17 +0100, Bruce Richardson wrote: > The rte_rings traditionally have only supported having ring sizes as powers > of 2, with the actual usable space being the size - 1. In some cases, for > example, with an eventdev where we want to precisely control queue depths > for l

[dpdk-dev] [PATCH v2 1/5] ring: allow rings with non power-of-2 sizes

2017-06-30 Thread Bruce Richardson
The rte_rings traditionally have only supported having ring sizes as powers of 2, with the actual usable space being the size - 1. In some cases, for example, with an eventdev where we want to precisely control queue depths for latency, we need to allow ring sizes which are not powers of two so we