[dpdk-users] mbuf free cnt not decreasing

Andriy Berestovskyy aber at semihalf.com
Mon Apr 18 17:57:51 CEST 2016

On Mon, Apr 18, 2016 at 5:34 PM, Javier Coleto Fernández
<javicoleto44 at gmail.com> wrote:
> Basing on what you say, is that return value supposed to be less than 'n' in
> case the ring is filled up or do I have to check the ring size before
> calling rte_eth_tx_burst()?

You just have to check the return value and free the unsent mbufs.
Here is an example:

ret = rte_eth_tx_burst(port, queueid, m_table, n);
if (unlikely(ret < n)) {
    do {
    } while (++ret < n);


More information about the users mailing list