[PATCH v2 2/2] net/i40e: unset vector flag when scalar path is chosen
Ciara Loftus
ciara.loftus at intel.com
Thu Dec 18 16:42:43 CET 2025
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")
Signed-off-by: Ciara Loftus <ciara.loftus at intel.com>
---
drivers/net/intel/i40e/i40e_rxtx.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/net/intel/i40e/i40e_rxtx.c b/drivers/net/intel/i40e/i40e_rxtx.c
index cde60cc7bd..290fec2b0a 100644
--- a/drivers/net/intel/i40e/i40e_rxtx.c
+++ b/drivers/net/intel/i40e/i40e_rxtx.c
@@ -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
--
2.43.0
More information about the dev
mailing list