[PATCH] net/idpf: fix build option check
Morten Brørup
mb at smartsharesystems.com
Thu Dec 8 08:46:16 CET 2022
> From: Jingjing Wu [mailto:jingjing.wu at intel.com]
> Sent: Thursday, 8 December 2022 04.31
>
> 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: stable at dpdk.org
>
> Signed-off-by: Jingjing Wu <jingjing.wu at intel.com>
> ---
> drivers/net/idpf/meson.build | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/net/idpf/meson.build
> b/drivers/net/idpf/meson.build
> index 998afd21fe..650dade0b9 100644
> --- a/drivers/net/idpf/meson.build
> +++ b/drivers/net/idpf/meson.build
> @@ -7,6 +7,12 @@ if is_windows
> subdir_done()
> endif
>
> +if dpdk_conf.get('RTE_IOVA_AS_PA') == 0
> + build = false
> + reason = 'driver does not support disabling IOVA as PA mode'
> + subdir_done()
> +endif
> +
> deps += ['common_idpf']
>
> sources = files(
> --
> 2.25.1
>
I had to try the same, so I can surely say...
Reviewed-by: Morten Brørup <mb at smartsharesystems.com>
More information about the stable
mailing list