Skip to contentSkip to conversation

net/i40e: Fix aarch32 build and vector flag setting

PATCH In review Ciara Loftus 2 participants 4 messages Dec 18, 2025 – Jan 9 Network drivers

lore
Share & tools
lore
#0 lore raw

v2 cover net/i40e: Fix aarch32 build and vector flag setting

Fix two issues present on the i40e driver that were introduced by the tx path selection series:
1. Fix a build failure on 32-bit arm caused by an unused function.
2. Ensure that the vector flag is unset when the scalar path is chosen.

If possible both can be squashed into the commit they fix on next-net-intel.

Ciara Loftus (2):
net/i40e: fix 32-bit Arm build
net/i40e: unset vector flag when scalar path is chosen

 drivers/net/intel/i40e/i40e_rxtx.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/2 net/i40e: fix 32-bit Arm build

i40e_xmit_pkts_vec can be built for both aarch32 and aarch64.

Fixes 1ff08bb7ad90 ("net/i40e: use common Tx path selection infrastructure")
---
 drivers/net/intel/i40e/i40e_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/intel/i40e/i40e_rxtx.c +1 -1
index 2db58c6b24..cde60cc7bd 100644
@@ -1598,7 +1598,7 @@ static const struct ci_tx_path_info i40e_tx_path_infos[] = {
 		.pkt_prep = i40e_simple_prep_pkts,
 	},
 #endif
-#elif defined(RTE_ARCH_ARM64)
+#elif defined(RTE_ARCH_ARM)
 	[I40E_TX_NEON] = {
 		.pkt_burst = i40e_xmit_pkts_vec,
 		.info = "Vector Neon",
Signature · 1 line
2.43.0
#2 lore raw

PATCH v2 2/2 net/i40e: unset vector flag when scalar path is chosen

In reply to Ciara Loftus

The tx_vec_allowed flag should be set to false if a scalar Tx path is chosen.

Fixes 1ff08bb7ad90 ("net/i40e: use common Tx path selection infrastructure")
---
 drivers/net/intel/i40e/i40e_rxtx.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/net/intel/i40e/i40e_rxtx.c +4 -0
index cde60cc7bd..290fec2b0a 100644
@@ -3631,6 +3631,10 @@ i40e_set_tx_function(struct rte_eth_dev *dev)
 			ad->tx_func_type == I40E_TX_ALTIVEC ||
 			ad->tx_func_type == I40E_TX_AVX2)
 		dev->recycle_tx_mbufs_reuse = i40e_recycle_tx_mbufs_reuse_vec;
+
+	ad->tx_vec_allowed =
+		(i40e_tx_path_infos[ad->tx_func_type].features.simd_width >= RTE_VECT_SIMD_128);
+
 }
 
 int
Signature · 1 line
2.43.0
#3 lore raw
In reply to Ciara Loftus
Quoted 4 lines · Ciara Loftus

Fix two issues present on the i40e driver that were introduced by the tx path selection series:
1. Fix a build failure on 32-bit arm caused by an unused function.
2. Ensure that the vector flag is unset when the scalar path is chosen.

Quoted 9 lines

If possible both can be squashed into the commit they fix on next-net-intel.

Ciara Loftus (2):
net/i40e: fix 32-bit Arm build
net/i40e: unset vector flag when scalar path is chosen

 drivers/net/intel/i40e/i40e_rxtx.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Confirmed the build issue on 32-bit Arm is fixed by these. Patches squashed into offending commit on next-net-intel.