Thread (10 messages) 10 messages, 3 authors, 2016-03-31

Re: DPDK: receive single packet at a time

From: Mohan Prasad <hidden>
Date: 2016-03-30 05:36:55

Hi Bruce,

Could not get it working by disabling the vector PMD, Do you have any
example where it works?

Thanks,
Mohan

On Tue, Mar 29, 2016 at 6:46 PM, Bruce Richardson <
bruce.richardson@intel.com> wrote:
On Tue, Mar 29, 2016 at 06:31:58PM +0530, Mohan Prasad wrote:
quoted
Hi,

I have tried this and it does not work
What type of NIC are you using. If you are using ixgbe or i40e, try
disabling
the vector PMD in your build-time configuration to see if it makes a
difference.

However, why do you want to receive just a single packet at a time. Why
not just
receive a burst of packets and then process them one at a time? It's much
more
efficient that way, and you should get better performance from your
application.

/Bruce

quoted
Thanks,
Mohan
On Mar 29, 2016 6:26 PM, "Wiles, Keith" [off-list ref] wrote:
quoted
quoted
Hi,

Is there any option to receive single packet at a time with dpdk?
Not sure if this is the answer you are looking for, but if you just
request a single packet with

struct rte_mbuf *mbuf;
rte_eth_rx_burst(port_id, queue_id, &mbuf, 1);

will return only one packet as a time.
quoted
Thanks,
Mohan

Regards,
Keith



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