From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id AB6386A92 for ; Mon, 29 Sep 2014 14:24:35 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 29 Sep 2014 05:24:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,620,1406617200"; d="scan'208";a="580606587" Received: from irsmsx102.ger.corp.intel.com ([163.33.3.155]) by orsmga001.jf.intel.com with ESMTP; 29 Sep 2014 05:30:54 -0700 Received: from irsmsx106.ger.corp.intel.com (163.33.3.31) by IRSMSX102.ger.corp.intel.com (163.33.3.155) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 29 Sep 2014 13:30:17 +0100 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.248]) by IRSMSX106.ger.corp.intel.com ([169.254.8.193]) with mapi id 14.03.0195.001; Mon, 29 Sep 2014 13:30:16 +0100 From: "Ananyev, Konstantin" To: "Richardson, Bruce" , "Wiles, Roger Keith (Wind River)" Thread-Topic: [dpdk-dev] Bulk dequeue of packets and the returned values, question Thread-Index: AQHP29633WOyO7vRz0uFDsYcoVvOgpwYCStQ Date: Mon, 29 Sep 2014 12:30:16 +0000 Message-ID: <2601191342CEEE43887BDE71AB97725821387594@IRSMSX104.ger.corp.intel.com> References: <54288A70.9020902@intel.com> <20140929121022.GH12072@BRICHA3-MOBL> In-Reply-To: <20140929121022.GH12072@BRICHA3-MOBL> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Bulk dequeue of packets and the returned values, question X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-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