From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f45.google.com (mail-vk0-f45.google.com [209.85.213.45]) by dpdk.org (Postfix) with ESMTP id E01842B9C for ; Wed, 30 Mar 2016 07:36:55 +0200 (CEST) Received: by mail-vk0-f45.google.com with SMTP id e185so47284669vkb.1 for ; Tue, 29 Mar 2016 22:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=ru1lZdbJSxr68kI5olk0WbRfp+RxHpoTgPWeLipjgOU=; b=TRJyQgxG0PC0+O17RF7k3ZGmRO77VgWHyZrv0KWODKBifhalhR464bEDttVg1fM5OC I/tNytAs1+SlJW8E3Au9dSXNpHfknxTFsE9VK6UULmHOqvtMUOlsQVIlR+uZzZc3X5Uz FYM1IUXZzSBT/44/BMs87ZmI8k9juA+o4Qw+fJj5tDLlZiAI79mC4oHytWk/V8LbSO90 I1yiWbgiy7fxwbs86sOcTiR+Z++OkVRQp3IMYjZ9k0sHsYvV2VemurDIbEY3j4YlFS+a d+EHv6fbub4eBnL4NjDVmQRJOqIWP812FO6W1c/o5cd7oFvO9gvb77Y4bMHBulJNq680 q9aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=ru1lZdbJSxr68kI5olk0WbRfp+RxHpoTgPWeLipjgOU=; b=MJ1IwpMU/waDb73Po/AyES7jfEndL4UJ85CpdVTWS84xy2ksmqVTp6vvmTfU+hMOaQ K8mlpg+xgQ3umdf9Q05AtjxegunVlXgMmwh8letjhC008IO0jizDeYepbH4rHytUh1D6 6y+l6vkP29ch1tWqkm/GM4UvYLY0lP+yav4+Yz7UePD8lNjqvY2xaiFOgCt8oahOviyr QCZMPX/zbp6db2LXcDDzdRpDPzG1Cn979XPKeqcZ5o3Awma2/XhyNXo6RglZlgun+9pc lAE/9wF6kdcgSI0ZIpmv5xpOfj9QpNrmXlfPBSSMNROz1LfgWRPTStAI4K/7Cmco2RIU yNcw== X-Gm-Message-State: AD7BkJKBDQXFMeGrotBNdNag4KLbRHmQLMPAxauBrl7uEajlPxIW7L5by2tUS68/uL/lSVfGHQiMyYYey+itMA== MIME-Version: 1.0 X-Received: by 10.159.35.108 with SMTP id 99mr4011420uae.118.1459316215332; Tue, 29 Mar 2016 22:36:55 -0700 (PDT) Received: by 10.176.1.171 with HTTP; Tue, 29 Mar 2016 22:36:55 -0700 (PDT) In-Reply-To: <20160329131619.GB22104@bricha3-MOBL3> References: <20160329131619.GB22104@bricha3-MOBL3> Date: Wed, 30 Mar 2016 11:06:55 +0530 Message-ID: From: Mohan Prasad To: Bruce Richardson Cc: "Wiles, Keith" , dev@dpdk.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 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: Wed, 30 Mar 2016 05:36:56 -0000 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: > > 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 > > > > > > > > > > > > > > > >