<div dir="ltr">Yes Bruce, rte_eth_tx_burst api returns the same count as nb_pkts (4th-arg)<div><br></div><div>Thanks for pointing out the information on tracking per-queue stats mapping, can try this out. </div><div><br></div><div>Thanks & Regards,</div><div>Rajasekhar</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 17, 2023 at 10:09 PM Bruce Richardson <<a href="mailto:bruce.richardson@intel.com">bruce.richardson@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Feb 17, 2023 at 11:30:14AM +0530, Rajasekhar Pulluru wrote:<br>
>    Ok Stephen, thanks for the information, I can try that.<br>
>    One of the problems I see with single Tx Queue mode is that Ixia<br>
>    reports packet drops, though I confirmed with the help of counters<br>
>    (before invoking tx burst) that all packets are being sent-out. Dumping<br>
>    HW counters don't report any drops in TX.<br>
>    Is there a mechanism in DPDK to debug this?<br>
>    Thanks & Regards,<br>
>    Rajasekhar<br>
> <br>
Hi,<br>
<br>
so long as the packets are written successfully to the TX ring, they should<br>
be send out ok - unless the actual packets are some way invalid, e.g.<br>
undersized. Are the tx_burst calls reporting that all packets are getting<br>
written to the ring?  All packets successfully written should be reported<br>
as received at the other end.<br>
<br>
In terms of the NIC TX stats, I'm not sure about for the ixgbe driver, but<br>
I think in some cases to get per-queue stats, you needed to set up a<br>
mapping of what queues you wanted to track stats for, as the NIC could only<br>
track a certain number of queues - fewer than that available in HW.  See<br>
function [1]. For tracking transmits per queue, it's generally easier just<br>
to have the app track the successful enqueues to the ring. This is what<br>
testpmd does internally for queue stats, I believe (though for port stats<br>
it reads hardware).<br>
<br>
/Bruce<br>
<br>
[1] <a href="https://doc.dpdk.org/api/rte__ethdev_8h.html#a56fae7e398b289f795a1b6256149c4f3" rel="noreferrer" target="_blank">https://doc.dpdk.org/api/rte__ethdev_8h.html#a56fae7e398b289f795a1b6256149c4f3</a><br>
</blockquote></div>