[PATCH v2 1/7] eal: add queue macro extensions from FreeBSD
Thomas Monjalon
thomas at monjalon.net
Sat Feb 22 09:46:34 CET 2025
22/02/2025 00:05, Stephen Hemminger:
> On Wed, 19 Feb 2025 15:55:17 +0100
> Thomas Monjalon <thomas at monjalon.net> wrote:
>
> > 14/02/2025 18:20, Stephen Hemminger:
> > > The Linux version of sys/queue.h is frozen at an older version
> > > and is missing the _SAFE macro variants. Several drivers started
> > > introducing the own workarounds for this. Should be handled in EAL.
> > >
> > > Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> >
> > We may want to unify with lib/eal/windows/include/sys/queue.h
>
> Do we want to just not use the local Linux version of queue.h entirely?
> Maybe just put in current FreeBSD one? It has lots more useful variations.
Yes but it should be global in EAL, no need to duplicate it for EAL Windows and others.
> The point is to avoid broken versions (like one Intel driver) or
> having same macro in multiple places.
Got it.
More information about the dev
mailing list