Re: [dpdk-dev] [PATCH v4 2/2] ethdev: make rte_flow API thread safe

2020-10-14 Thread Suanming Mou
nko ; dev@dpdk.org > Subject: Re: [dpdk-dev] [PATCH v4 2/2] ethdev: make rte_flow API thread safe > > 09/10/2020 03:17, Suanming Mou: > > --- a/doc/guides/prog_guide/rte_flow.rst > > +++ b/doc/guides/prog_guide/rte_flow.rst > > +If PMD interfaces do not support r

Re: [dpdk-dev] [PATCH v4 2/2] ethdev: make rte_flow API thread safe

2020-10-14 Thread Thomas Monjalon
09/10/2020 03:17, Suanming Mou: > --- a/doc/guides/prog_guide/rte_flow.rst > +++ b/doc/guides/prog_guide/rte_flow.rst > +If PMD interfaces do not support re-entrancy/multi-thread safety, rte_flow "API" should be inserted here to make clear which layer we talk about. > +level functions will do it

[dpdk-dev] [PATCH v4 2/2] ethdev: make rte_flow API thread safe

2020-10-08 Thread Suanming Mou
Currently, the rte_flow functions are not defined as thread safe. DPDK applications either call the functions in single thread or protect any concurrent calling for the rte_flow operations using a lock. For PMDs support the flow operations thread safe natively, the redundant protection in applicat