> -----Original Message-----
> From: Thomas Monjalon [mailto:[email protected]]
> Sent: Monday, September 17, 2018 22:37
> To: Yigit, Ferruh <[email protected]>
> Cc: Li, Xiaoyun <[email protected]>; Xing, Beilei <[email protected]>;
> Zhang, Qi Z <[email protected]>; [email protected]; Yang, Zhiyong
> <[email protected]>; Richardson, Bruce <[email protected]>
> Subject: Re: [PATCH v6] net/i40e: add interface to use latest vec path
>
> 17/09/2018 16:14, Ferruh Yigit:
> > On 9/17/2018 10:58 AM, Xiaoyun Li wrote:
> > > @@ -1078,6 +1078,9 @@ struct i40e_adapter {
> > > uint64_t pctypes_tbl[I40E_FLOW_TYPE_MAX]
> __rte_cache_min_aligned;
> > > uint64_t flow_types_mask;
> > > uint64_t pctypes_mask;
> > > +
> > > + /* For devargs */
> > > + bool use_latest_vec;
> >
> > For this one checkpatch is giving following warning:
> >
> > CHECK:BOOL_MEMBER: Avoid using bool structure members because of
> > possible alignment issues - see: https://lkml.org/lkml/2017/11/21/384
> >
> > The comment in the link seems valid. What do you think using a basic
> > storage type for the variable, like uint8_t?
> >
> >
> > And overall is there any objection to follow this new convention?
>
> I agree with avoiding bool in structs.
>
OK. Thanks!