net/idpf: fix build option check
Subsystems (2)
PATCH 1/1 net/idpf: fix build option check
When enable_iova_as_pa option is disabled, idpf driver should avoid the building in its build file.
--- drivers/net/idpf/meson.build | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/net/idpf/meson.build +6 -0
@@ -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(
Signature · 1 line
2.25.1
Quoted 34 lines
From: Jingjing Wu [mailto:[email protected]]
Sent: Thursday, 8 December 2022 04.31When
enable_iova_as_paoption is disabled, idpf driver should avoid the building in its build file.Fixes 5bf87b45b2c8 (net/idpf: add AVX512 data path for single queuemodel)
Cc: [email protected]Signed-off-by Jingjing Wu <[email protected]>--- drivers/net/idpf/meson.build | 6 ++++++ 1 file changed, 6 insertions(+)drivers/net/idpf/meson.build +6
-1@@ -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( --
Quoted 2 lines
2.25.1
I had to try the same, so I can surely say...
Quoted 39 lines
-----Original Message-----
From: Wu, Jingjing <[email protected]>
Sent: Thursday, December 8, 2022 11:31 AM
To: [email protected]
Cc: Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>; [email protected]
Subject: [PATCH] net/idpf: fix build option checkWhen
enable_iova_as_paoption is disabled, idpf driver should avoid the building in its build file.Fixes 5bf87b45b2c8 (net/idpf: add AVX512 data path for single queue model)Signed-off-by Jingjing Wu <[email protected]>--- drivers/net/idpf/meson.build | 6 ++++++ 1 file changed, 6 insertions(+)drivers/net/idpf/meson.build +6
-1@@ -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( --
Quoted 1 line
2.25.1
Zhang, Qi Z
AppliedQuoted 47 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Friday, December 9, 2022 11:15 AM
To: Wu, Jingjing <[email protected]>; [email protected]
Cc: [email protected]
Subject: RE: [PATCH] net/idpf: fix build option checkQuoted 36 lines
-----Original Message-----
From: Wu, Jingjing <[email protected]>
Sent: Thursday, December 8, 2022 11:31 AM
To: [email protected]
Cc: Wu, Jingjing <[email protected]>; Xing, Beilei <[email protected]>; [email protected]
Subject: [PATCH] net/idpf: fix build option checkWhen
enable_iova_as_paoption is disabled, idpf driver should avoid the building in its build file.Fixes 5bf87b45b2c8 (net/idpf: add AVX512 data path for single queuemodel)
Cc: [email protected]Signed-off-by Jingjing Wu <[email protected]>--- drivers/net/idpf/meson.build | 6 ++++++ 1 file changed, 6 insertions(+)(quoted diff) +0
-0b/drivers/net/idpf/meson.build index
998afd21fe..650dade0b9100644drivers/net/idpf/meson.build +6
-0@@ -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']
Quoted 5 lines
Quoted 3 lines
drivers/net/idpf/meson.build +0
-1sources = files( --2.25.1
Acked-by Beilei Xing <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
13/12/2022 02:52, Zhang, Qi Z:
Quoted 21 lines
From: Xing, Beilei <[email protected]>
Quoted 8 lines
From: Wu, Jingjing <[email protected]>
Quoted 7 lines
When
enable_iova_as_paoption is disabled, idpf driver should avoid the building in its build file.Fixes 5bf87b45b2c8 (net/idpf: add AVX512 data path for single queuemodel)
Cc: [email protected]Quoted 11 lines
drivers/net/idpf/meson.build if is_windows · line 14
Quoted 9 lines
Signed-off-by Jingjing Wu <[email protected]>---
drivers/net/idpf/meson.build +5
-0+if dpdk_conf.get('RTE_IOVA_AS_PA') == 0 + build = false + reason = 'driver does not support disabling IOVA as PA mode' + subdir_done() +endifAcked-by Beilei Xing <[email protected]>
Quoted 1 line
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.
17/02/2023 23:34, Thomas Monjalon:
Quoted 33 lines
13/12/2022 02:52, Zhang, Qi Z:
Quoted 21 lines
From: Xing, Beilei <[email protected]>
Quoted 8 lines
From: Wu, Jingjing <[email protected]>
Quoted 7 lines
When
enable_iova_as_paoption is disabled, idpf driver should avoid the building in its build file.Fixes 5bf87b45b2c8 (net/idpf: add AVX512 data path for single queuemodel)
Cc: [email protected]Quoted 11 lines
drivers/net/idpf/meson.build if is_windows · line 14
Quoted 9 lines
Signed-off-by Jingjing Wu <[email protected]>---
drivers/net/idpf/meson.build +5
-0+if dpdk_conf.get('RTE_IOVA_AS_PA') == 0 + build = false + reason = 'driver does not support disabling IOVA as PA mode' + subdir_done() +endifAcked-by Beilei Xing <[email protected]>Quoted 1 line
Applied to dpdk-next-net-intel.
I think this patch is not needed since we have this check done for all drivers:
drivers/net/idpf/meson.build +5
-0+ 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
Quoted 2 lines
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.