[v2,05/17] net/axgbe: add checks for max SIMD bitwidth
Checks
Commit Message
When choosing a vector path to take, an extra condition must be
satisfied to ensure the max SIMD bitwidth allows for the CPU enabled
path.
Cc: Somalapuram Amaranath <asomalap@amd.com>
Signed-off-by: Ciara Power <ciara.power@intel.com>
---
drivers/net/axgbe/axgbe_rxtx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -553,7 +553,8 @@ int axgbe_dev_tx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx,
if (!pdata->tx_queues)
pdata->tx_queues = dev->data->tx_queues;
- if (txq->vector_disable)
+ if (txq->vector_disable || rte_get_max_simd_bitwidth()
+ < RTE_MAX_128_SIMD)
dev->tx_pkt_burst = &axgbe_xmit_pkts;
else
#ifdef RTE_ARCH_X86