From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 1C1D1F72 for ; Tue, 7 Feb 2017 08:51:18 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP; 06 Feb 2017 23:51:17 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,345,1477983600"; d="scan'208";a="1104048194" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 06 Feb 2017 23:51:17 -0800 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 6 Feb 2017 23:51:17 -0800 Received: from BGSMSX108.gar.corp.intel.com (10.223.4.192) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 6 Feb 2017 23:51:16 -0800 Received: from bgsmsx101.gar.corp.intel.com ([169.254.1.43]) by BGSMSX108.gar.corp.intel.com ([169.254.8.175]) with mapi id 14.03.0248.002; Tue, 7 Feb 2017 13:20:21 +0530 From: "Yang, Zhiyong" To: Adrien Mazarguil , "Richardson, Bruce" CC: "Ananyev, Konstantin" , Andrew Rybchenko , "dev@dpdk.org" , "thomas.monjalon@6wind.com" Thread-Topic: [dpdk-dev] [RFC] lib/librte_ether: consistent PMD batching behavior Thread-Index: AQHScwLxY9/t//0KCkG+GNAuCk/VhKFBKT0AgAAM+lCAAAC5QP//rQoAgAUHZQCAF1ZnsA== Date: Tue, 7 Feb 2017 07:50:21 +0000 Message-ID: References: <1484905876-60165-1-git-send-email-zhiyong.yang@intel.com> <2601191342CEEE43887BDE71AB9772583F108924@irsmsx105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB9772583F108959@irsmsx105.ger.corp.intel.com> <20170120114822.GA106360@bricha3-MOBL3.ger.corp.intel.com> <20170123163607.GB3779@6wind.com> In-Reply-To: <20170123163607.GB3779@6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjVkYWQ2NjMtZTMxNC00YmI2LWIwMGQtODQyYTQyMGUyZmQ1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6InQ4THRDamc5NkFSZERWdnhRTnRpKzBaRmdsSlNKWlUySHlhdkI0RW1cL1NzPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [10.223.10.10] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [RFC] lib/librte_ether: consistent PMD batching behavior X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Feb 2017 07:51:19 -0000 SGksIEFkcmllbjoNCg0KCVNvcnJ5IGZvciB0aGUgbGF0ZSByZXBseSAgZHVlIHRvIENoaW5lc2Ug bmV3IHllYXIuDQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQWRyaWVu IE1hemFyZ3VpbCBbbWFpbHRvOmFkcmllbi5tYXphcmd1aWxANndpbmQuY29tXQ0KPiBTZW50OiBU dWVzZGF5LCBKYW51YXJ5IDI0LCAyMDE3IDEyOjM2IEFNDQo+IFRvOiBSa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