From: Ciara Power Date: Mon, 19 Oct 2020 13:48:44 +0000 (+0200) Subject: net/axgbe: check max SIMD bitwidth X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2b11056d1ef079d44844df2e6568ced372574e4e;p=dpdk.git net/axgbe: check max SIMD bitwidth 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. Signed-off-by: Ciara Power Acked-by: Amaranath Somalapuram --- diff --git a/drivers/net/axgbe/axgbe_rxtx.c b/drivers/net/axgbe/axgbe_rxtx.c index bc93becaa5..032e3cebce 100644 --- a/drivers/net/axgbe/axgbe_rxtx.c +++ b/drivers/net/axgbe/axgbe_rxtx.c @@ -10,6 +10,7 @@ #include #include #include +#include static void axgbe_rx_queue_release(struct axgbe_rx_queue *rx_queue) @@ -557,7 +558,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_vect_get_max_simd_bitwidth() < RTE_VECT_SIMD_128) dev->tx_pkt_burst = &axgbe_xmit_pkts; else #ifdef RTE_ARCH_X86