[dpdk-dev] [PATCH v4 2/2] mempool/ring: add support for new ring sync modes
Ananyev, Konstantin
konstantin.ananyev at intel.com
Tue Jul 14 11:16:18 CEST 2020
>
> 13/07/2020 17:50, Konstantin Ananyev:
> > Two new sync modes were introduced into rte_ring:
> > relaxed tail sync (RTS) and head/tail sync (HTS).
> > This change provides user with ability to select these
> > modes for ring based mempool via mempool ops API.
> >
> > Signed-off-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
> > Acked-by: Gage Eads <gage.eads at intel.com>
> > ---
> > doc/guides/mempool/ring.rst | 10 +++
> > doc/guides/rel_notes/release_20_08.rst | 6 ++
> > drivers/mempool/ring/rte_mempool_ring.c | 88 ++++++++++++++++++++++---
> > 3 files changed, 95 insertions(+), 9 deletions(-)
> >
> > diff --git a/doc/guides/mempool/ring.rst b/doc/guides/mempool/ring.rst
> > index b8659c03f..9e2824070 100644
> > --- a/doc/guides/mempool/ring.rst
> > +++ b/doc/guides/mempool/ring.rst
> > @@ -29,6 +29,16 @@ and can be selected via mempool ops API:
> > Underlying **rte_ring** operates in multi-thread producer,
> > single-thread consumer sync mode.
> >
> > +- ``ring_mt_rts``
> > +
> > + For underlying **rte_ring** both producer and consumer operate in
> > + multi-thread Relaxed Tail Sync (RTS) mode.
> > +
> > +- ``ring_mt_hts``
> > +
> > + For underlying **rte_ring** both producer and consumer operate in
> > + multi-thread Haad-Tail Sync (HTS) mode.
>
> Typo Haad -> Head
Will fix.
>
> Please explain what these modes mean and why/when use them.
>
We have quite detailed explanation in ring library guide:
https://doc.dpdk.org/guides/prog_guide/ring_lib.html
7.6. Producer/consumer synchronization modes
So here, I put a link to ring library guide for those who need more details.
I can copy&paste same text here too,
but it probably not much point in such duplication.
More information about the dev
mailing list