17/02/2023 23:34, Thomas Monjalon:
> 13/12/2022 02:52, Zhang, Qi Z:
> > From: Xing, Beilei <[email protected]>
> > > From: Wu, Jingjing <[email protected]>
> > > > When enable_iova_as_pa option is disabled, idpf driver should avoid
> > > > the building in its build file.
> > > >
> > > > Fixes: 5bf87b45b2c8 (net/idpf: add AVX512 data path for single queue
> > > > model)
> > > > Cc: [email protected]
> > > >
> > > > Signed-off-by: Jingjing Wu <[email protected]>
> > > > ---
> > > > --- a/drivers/net/idpf/meson.build
> > > > +++ b/drivers/net/idpf/meson.build
> > > > +if dpdk_conf.get('RTE_IOVA_AS_PA') == 0
> > > > + build = false
> > > > + reason = 'driver does not support disabling IOVA as PA mode'
> > > > + subdir_done()
> > > > +endif
> > >
> > > Acked-by: Beilei Xing <[email protected]>
> >
> > Applied to dpdk-next-net-intel.
>
> I think this patch is not needed since we have this check done for all
> drivers:
>
> + pmd_supports_disable_iova_as_pa = false
> [...]
> + if dpdk_conf.get('RTE_IOVA_AS_PA') == 0 and not
> pmd_supports_disable_iova_as_pa and not always_enable.contains(drv_path)
> + build = false
> + reason = 'driver does not support disabling IOVA as PA mode'
> + endif
>
> I will skip this patch and mark it as Rejected in patchwork.
> Please confirm the decision is OK.
After more thoughts, I think we should only stop compilation in common/idpf:
+if not get_option('enable_iova_as_pa')
+ subdir_done()
+endif
No need to give reason or disable build as it will be done anyway in
drivers/meson.build.