[dpdk-dev] [PATCH] eal/windows: add sys/queue.h.
William Tu
u9012063 at gmail.com
Wed Aug 11 17:18:23 CEST 2021
On Wed, Aug 11, 2021 at 1:34 AM Nick Connolly <nick.connolly at mayadata.io> wrote:
>
>
> > What we can do:
> >
> > 1. Introduce `rte_queue.h` (name can be better) that is env-specific:
> >
> > 1.1. For Linux and FreeBSD it just includes <sys/queue.h>
> > and renames a few macros that are used in headers to RTE_xxx.
> > 1.2. For Windows it defines the same RTE_xxx macros in a way
> > compatible with the <sys/queue.h> version used to build DPDK.
> >
> > 2. Add #include <sys/queue.h> in <rte_os_shim.h>:
> > Linux and FreeBSD will include a system header,
> > Windows will use the bundled one.
> >
> > This way application are not exposed to non-RTE symbols,
> > at the same time RTE_xxx are binary-compatible with what DPDK
> > implementation expects (and outside of Windows there is no change in fact).
>
> +1
> Nick
Hi Nick and Dmitry,
Thanks for such a detailed explanation!
I sent the v2 patch, hopefully I understand you guys correctly.
William
More information about the dev
mailing list