Skip to contentSkip to conversation

net/idpf: fix build option check

PATCH Applied Jingjing Wu 5 participants 6 messages Dec 8, 2022 – Feb 19, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

Fixes 5bf87b45b2c8 (net/idpf: add AVX512 data path for single queue model)
---
 drivers/net/idpf/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/net/idpf/meson.build +6 -0
index 998afd21fe..650dade0b9 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 34 lines

From: Jingjing Wu [mailto:[email protected]]
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: [email protected]

---
 drivers/net/idpf/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/net/idpf/meson.build +6 -1
index 998afd21fe..650dade0b9 100644
@@ -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...

Acked-by on v1 1/1
#2 lore raw
In reply to Jingjing Wu
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 check

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)
---
 drivers/net/idpf/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/net/idpf/meson.build +6 -1
index 998afd21fe..650dade0b9 100644
@@ -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

Applied
#3 lore raw
Quoted 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 check

Quoted 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 check

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]

---
 drivers/net/idpf/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)
(quoted diff) +0 -0

b/drivers/net/idpf/meson.build index 998afd21fe..650dade0b9 100644

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']
 
Quoted 5 lines
Quoted 3 lines
drivers/net/idpf/meson.build +0 -1
 sources = files(
--

2.25.1

Applied to dpdk-next-net-intel.

Thanks
Qi

#4 lore raw

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_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]

Quoted 11 lines

drivers/net/idpf/meson.build if is_windows · line 14

Quoted 9 lines

---

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()
+endif
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.

#5 lore raw

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_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]

Quoted 11 lines

drivers/net/idpf/meson.build if is_windows · line 14

Quoted 9 lines

---

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()
+endif
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.