[dpdk-dev] rte_ring_sc_dequeue returns 0 but sets packet to NULL
Jose Gavine Cueto
pepedocs at gmail.com
Tue Nov 19 11:35:16 CET 2013
Hi,
I am encountering a strange behavior of rte_ring_sc_dequeue, though I'm not
yet sure what causes this.
I have a code:
rc = rte_ring_sc_dequeue(fwdp->rxtx_rings->xmit_ring, &rpackets);
At first dequeue, rpackets gets a correct address of an rte_mbuf, however
at the second dequeue it returns 0 which is successful but sets the
rte_mbuf result to a NULL value. Is this even possible, because its
happening in my scenario. Or it could be just there's something wrong with
my code.
Cheers,
Pepe
--
To stop learning is like to stop loving.
More information about the dev
mailing list