[ovs-dev] [PATCH] ovs-thread: Add pthread spin lock support.

William Tu u9012063 at gmail.com
Wed Jun 26 14:29:11 UTC 2019


On Wed, Jun 26, 2019 at 7:08 AM Ben Pfaff <blp at ovn.org> wrote:
>
> On Wed, Jun 26, 2019 at 10:37:49AM -0300, Flavio Leitner via dev wrote:
> >
> > Hi William,
> >
> > On Thu, Jun 20, 2019 at 11:00:56AM -0700, William Tu wrote:
> > > The patch adds the basic spin lock functions:
> > > ovs_spin_{lock, try_lock, unlock, init, destroy}.
> > > I have some use cases using af_xdp, patches will
> > > come later.
> >
> > Usually the new API is merged along with an user otherwise
> > it is difficult to evaluate what is really needed and etc...
> >
> > It also avoids the issue of having to maintain dead code if
> > the API's user never comes or gets merged for whatever reason.
> >
> > Does that make sense to you?
>
> It'd make sense to make this an early patch in a series for AF_XDP, if
> AF_XDP uses it.

Thanks Ben and Flavio,
I will put this patch in the early series of AF_XDP patch.

William


More information about the dev mailing list