[dpdk-dev] Sending and receiving on the same port at the same time, from different threads
stephen at networkplumber.org
Fri Jan 15 19:15:42 CET 2016
On Fri, 15 Jan 2016 12:33:14 -0500
Matthew Hall <mhall at mhcomputing.net> wrote:
> On Fri, Jan 15, 2016 at 04:54:11PM +0000, Zoltan Kiss wrote:
> > Can you call rte_eth_tx_burst() and rte_eth_tx_burst() on the same port at
> > the same time from different threads?
> In general, yes you can. I did this before in an L4-L7 performance tester, so
> cores could concentrate on RX or TX to keep the speeds high.
> > Have anyone seen a device where it wasn't true?
> Not specifically. But I didn't go looking for one either.
Same port is OK, as long as each thread uses different queues.
The device queues are not thread safe; ie two threads can't be pulling/pushing
to the same queue.
More information about the dev