[PATCH v5 11/14] eal: expand most macros to empty when using MSVC

Stephen Hemminger stephen at networkplumber.org
Sun Apr 16 00:52:27 CEST 2023


On Sun, 16 Apr 2023 00:41:54 +0200
Morten Brørup <mb at smartsharesystems.com> wrote:

> > > > > >  /**
> > > > > >   * Force a structure to be packed
> > > > > >   */
> > > > > > +#ifndef RTE_TOOLCHAIN_MSVC
> > > > > >  #define __rte_packed __attribute__((__packed__))
> > > > > > +#else
> > > > > > +#define __rte_packed
> > > > > > +#endif  

Could there be cases this gets used for protocol headers or interacting with
HW memory map, And if not packed then the code will not function correctly?


More information about the dev mailing list