Hi Stephen, > -----Original Message----- > From: Stephen Hemminger <[email protected]> > Sent: Tuesday, June 7, 2022 9:43 AM > To: Maxime Coquelin <[email protected]> > Cc: Chautru, Nicolas <[email protected]>; [email protected]; > [email protected]; [email protected]; [email protected]; Vargas, > Hernan <[email protected]> > Subject: Re: [PATCH v1] bbdev: add device status info > > On Tue, 7 Jun 2022 18:20:38 +0200 > Maxime Coquelin <[email protected]> wrote: > > > Hi Nicolas, > > > > On 6/7/22 17:44, Chautru, Nicolas wrote: > > > Hi Maxime, > > > > > >> -----Original Message----- > > >> From: Maxime Coquelin <[email protected]> > > >> Sent: Tuesday, June 7, 2022 5:43 AM > > >> To: Stephen Hemminger <[email protected]>; Chautru, > > >> Nicolas <[email protected]> > > >> Cc: [email protected]; [email protected]; [email protected]; > > >> [email protected]; Vargas, Hernan > <[email protected]> > > >> Subject: Re: [PATCH v1] bbdev: add device status info > > >> > > >> Hi Stephen, > > >> > > >> On 6/7/22 02:09, Stephen Hemminger wrote: > > >>> On Mon, 6 Jun 2022 15:50:08 -0700 Nicolas Chautru > > >>> <[email protected]> wrote: > > >>> > > >>>> @@ -298,6 +313,8 @@ struct rte_bbdev_driver_info { > > >>>> const struct rte_bbdev_op_cap *capabilities; > > >>>> /** Device cpu_flag requirements */ > > >>>> const enum rte_cpu_flag_t *cpu_flag_reqs; > > >>>> + /** Device Status */ > > >>>> + enum rte_bbdev_device_status device_status; > > >>>> }; > > >>>> > > >>> > > >>> This ends up being an ABI breakage, can't change a struct like > > >>> that until 22.11 release. > > >>> > > >> > > >> Indeed, but Nicolas mentioned in the cover-letter that the patch > > >> targets v22.11; not this release. > > >> > > >> However, a deprecation notice should be sent for v22.07 if it > > >> hasn't been done yet. > > > > > > I have sent this deprecation Maxime: > > > https://patches.dpdk.org/project/dpdk/patch/1647542252-35727-2-git-s > > > [email protected]/ > > > Do you believe this needs to be extended to cover more details the > > > change and including this device status info explicitly? I can > > > update the verbiage in more details if required > > > > Thanks for the pointer, I missed it. > > Reading the deprecation notice, it is not clear to me it is about the > > device status info enum. > > > > Maybe rewording it a bit to be more specific would help. > > You might want to use one the existing empty padding slots (holes) in that > structure. It appears to have been laid out haphazardly. >
I don't see such one single hole to fill that enum but I can shuffle a bit that structure. In that case total size would no longer change but a few offsets would differ and padding would be reduced. Thanks Nic

