From: Jerin Jacob Date: Tue, 28 Nov 2017 13:22:38 +0000 (+0530) Subject: net/thunderx: fix multi segment Tx function return X-Git-Tag: spdx-start~613 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=42473d6782896bf6281d347f61cbcfaf8df17d0f;p=dpdk.git net/thunderx: fix multi segment Tx function return multi segment version of tx burst function was not returning the actual number of packets sent out in PMD xmit function. Fixes: 1c421f18e0 ("net/thunderx: add single and multi-segment Tx") Cc: stable@dpdk.org Signed-off-by: Jerin Jacob Signed-off-by: Sunil Kulkarni --- diff --git a/drivers/net/thunderx/nicvf_rxtx.c b/drivers/net/thunderx/nicvf_rxtx.c index e2294c0ae3..aa278afee3 100644 --- a/drivers/net/thunderx/nicvf_rxtx.c +++ b/drivers/net/thunderx/nicvf_rxtx.c @@ -224,7 +224,7 @@ nicvf_xmit_pkts_multiseg(void *tx_queue, struct rte_mbuf **tx_pkts, /* Inform HW to xmit the packets */ nicvf_addr_write(sq->sq_door, used_desc); - return nb_pkts; + return i; } static const uint32_t ptype_table[16][16] __rte_cache_aligned = {