[dpdk-dev] rte_ring features in use (or not)

Stephen Hemminger stephen at networkplumber.org
Wed Jan 25 17:39:34 CET 2017

On Wed, 25 Jan 2017 14:20:52 +0100
Olivier MATZ <olivier.matz at 6wind.com> wrote:

> > * Who uses the watermarks feature as is? I know we have a sample app
> >   that uses it, but there are better ways I think to achieve the same
> >   goal while simplifying the ring implementation. Rather than have a
> > set watermark on enqueue, have both enqueue and dequeue functions
> > return the number of free or used slots available in the ring (in
> > case of enqueue, how many free there are, in case of dequeue, how
> > many items are available). Easier to implement and far more useful to
> > the app.  
> +1

I did use the watermark feature once, it was for case of ring between
two threads. Only wanted to wake up other thread if > N packets were
in ring.

More information about the dev mailing list