From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 29 Mar 2016 06:16:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,410,1455004800"; d="scan'208";a="920978546" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.48]) by orsmga001.jf.intel.com with SMTP; 29 Mar 2016 06:16:21 -0700 Received: by (sSMTP sendmail emulation); Tue, 29 Mar 2016 14:16:19 +0025 Date: Tue, 29 Mar 2016 14:16:19 +0100 From: Bruce Richardson To: Mohan Prasad Cc: "Wiles, Keith" , dev@dpdk.org Message-ID: <20160329131619.GB22104@bricha3-MOBL3> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] DPDK: receive single packet at a time X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2016 13:16:24 -0000 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 > > > > > > > > > >