A bug was introduced with the recent fix that when
an offload feature is enabled axgbe_xmit_pkts_vec API is called
rather than axgbe_xmit_pkts API.This patch fixes it.

Fixes: 9963b5131af8 ("net/axgbe: support multi-process")

Signed-off-by: Jesna K E <jesna....@amd.com>
---
 drivers/net/axgbe/axgbe_ethdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/axgbe/axgbe_ethdev.c b/drivers/net/axgbe/axgbe_ethdev.c
index 3717166384..f174d46143 100644
--- a/drivers/net/axgbe/axgbe_ethdev.c
+++ b/drivers/net/axgbe/axgbe_ethdev.c
@@ -12,6 +12,8 @@
 
 #include "eal_filesystem.h"
 
+#include <rte_vect.h>
+
 #ifdef RTE_ARCH_X86
 #include <cpuid.h>
 #else
@@ -2137,6 +2139,8 @@ axgbe_set_tx_function(struct rte_eth_dev *dev)
 {
        struct axgbe_port *pdata = dev->data->dev_private;
 
+       dev->tx_pkt_burst = &axgbe_xmit_pkts;
+
        if (pdata->multi_segs_tx)
                dev->tx_pkt_burst = &axgbe_xmit_pkts_seg;
 #ifdef RTE_ARCH_X86
@@ -2144,8 +2148,6 @@ axgbe_set_tx_function(struct rte_eth_dev *dev)
        if (!txq->vector_disable &&
                        rte_vect_get_max_simd_bitwidth() >= RTE_VECT_SIMD_128)
                dev->tx_pkt_burst = &axgbe_xmit_pkts_vec;
-#else
-       dev->tx_pkt_burst = &axgbe_xmit_pkts;
 #endif
 }
 
-- 
2.34.1

Reply via email to