From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: DPDK: receive single packet at a time Date: Tue, 29 Mar 2016 14:16:19 +0100 Message-ID: <20160329131619.GB22104@bricha3-MOBL3> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Wiles, Keith" , dev@dpdk.org To: Mohan Prasad Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id D76795592 for ; Tue, 29 Mar 2016 15:16:23 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Tue, Mar 29, 2016 at 06:31:58PM +0530, Mohan Prasad wrote: > 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 > Thanks, > Mohan > On Mar 29, 2016 6:26 PM, "Wiles, Keith" wrote: > > > >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. > > > > > >Thanks, > > >Mohan > > > > > > > > > Regards, > > Keith > > > > > > > > > >