[RFC PATCH 01/44] eal: define new functionally distinct config structs
Bruce Richardson
bruce.richardson at intel.com
Thu Apr 30 09:56:04 CEST 2026
On Wed, Apr 29, 2026 at 12:03:48PM -0700, Stephen Hemminger wrote:
> On Wed, 29 Apr 2026 17:57:53 +0100
> Bruce Richardson <bruce.richardson at intel.com> wrote:
>
> > +/**
> > + * User-provided EAL initialization configuration.
> > + * Immutable after initialization, so no need for atomic types or locks.
> > + */
> > +struct eal_user_cfg {
> > + uint8_t reserved;
> > +};
> > +
>
> I assume reserved is only placeholder to be clobbered in later patches.
> Internal structures should not have reserved fields
Yep. As soon as I start moving in actual fields the reserved ones
disappear. I think some compilers complained about the empty structs so I
had to stick something in!
The other alternative was just to introduce the structs as they are
starting being populated. However, I feel the intent is far clearer to add
all three initially.
/Bruce
More information about the dev
mailing list