Thread (5 messages) flat view 5 messages, 2 authors, 2016-01-28

Re: DPDK mbuf pool in SR-IOV env and one RX/TX queue

From: Saurabh Mishra <hidden>
Date: 2016-01-28 04:39:26

Any clues or hint on how to debug this kind of problem on SR-IOV? Only
primary can send packet but secondary process couldn't. I have verified
host's qprc and qptc counters on PF and they do increment.

SR-IOV with DPDK seems more challenging than PCI pass through of whole NIC.

Saurabh
On Jan 26, 2016 12:19 PM, "Bruce Richardson" [off-list ref]
wrote:
On Mon, Jan 25, 2016 at 04:15:28PM -0800, Saurabh Mishra wrote:
quoted
Hi Bruce --
quoted
The sharing of the mbuf pool is not an issue, but sharing of rx/tx
queues
quoted
is.
quoted
The ethdev queues are not multi-thread safe, so to share a queue between
processes
quoted
or threads, you need to put in locks or other access control mechanisms.
[This
quoted
also implies a performance hit due to the locking]
Regards,
/Bruce
Right. So now we have only one process to do rx/tx on queue 0 if we
detect
quoted
that max queue support is 1.

However, we have noticed that if our process, which does rx/tx, is not
primary, then we can't transmit the packet out with SR-IOV.

Is there any specific limitation on SR-IOV (the vf driver in dpdk) that
only primary process should receive and transmit packets?

In our model, we have an agent process which monitor links and another
process which does packet processing. If we make our agent process as
primary then our secondary process is not able to send the packets --
rte_eth_tx_burst() succeed but recipient does not receive the packet.

Thanks,
/Saurabh
There should be no restrictions on RX/TX from secondary processes.

/Bruce
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help