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 35FB39A8E for ; Mon, 18 May 2015 10:48:41 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 18 May 2015 01:48:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,452,1427785200"; d="scan'208";a="696463220" Received: from pgsmsx106.gar.corp.intel.com ([10.221.44.98]) by orsmga001.jf.intel.com with ESMTP; 18 May 2015 01:48:36 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by PGSMSX106.gar.corp.intel.com (10.221.44.98) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 18 May 2015 16:45:36 +0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.23]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.94]) with mapi id 14.03.0224.002; Mon, 18 May 2015 16:45:32 +0800 From: "Liu, Yong" To: "Xu, HuilongX" , "Jiajia, SunX" , "dts@dpdk.org" Thread-Topic: =?utf-8?B?W2R0c10gW+KAmGR0cy12MeKAmSA3LzldIGFkZCBzb21lIHBtZCBmdW5jdGlv?= =?utf-8?Q?ns_for_tester_to_code_the_testpmd_cases?= Thread-Index: AQHQkSideHTXavVVn0+tjEQAVivXcp2A4OoAgACGgYA= Date: Mon, 18 May 2015 08:45:32 +0000 Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E10DE4978@SHSMSX103.ccr.corp.intel.com> References: <1431925646-1314-1-git-send-email-sunx.jiajia@intel.com> <1431925646-1314-8-git-send-email-sunx.jiajia@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dts] =?utf-8?b?W+KAmGR0cy12MeKAmSA3LzldIGFkZCBzb21lIHBtZCBmdW5j?= =?utf-8?q?tions_for_tester_to_code_the_testpmd_cases?= X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2015 08:48:43 -0000 U29tZSBhZGRpdGlvbmFsIGNvbW1lbnRzLg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0t DQo+IEZyb206IGR0cyBbbWFpbHRvOmR0cy1ib3VuY2VzQGRwZGsub3JnXSBPbiBCZWhhbGYgT2Yg WHUsIEh1aWxvbmdYDQo+IFNlbnQ6IE1vbmRheSwgTWF5IDE4LCAyMDE1IDQ6MjkgUE0NCj4gVG86 IEppYWppYSwgU3VuWDsgZHRzQGRwZGsub3JnDQo+IFN1YmplY3Q6IFJlOiBbZHRzXSBb4oCYZHRz LXYx4oCZIDcvOV0gYWRkIHNvbWUgcG1kIGZ1bmN0aW9ucyBmb3IgdGVzdGVyIHRvDQo+IGNvZGUg dGhlIHRlc3RwbWQgY2FzZXMNCj4gDQo+IEhpIEppYWppYSwNCj4gSSBoYXZlIGEgY29tbWVudHMg YXQgIiBkZWYgZXhlY3V0ZV9jbWQoc2VsZiwgcG1kX2NtZCwgZXhwZWN0ZWQ9J3Rlc3RwbWQ+ICcs DQo+IHRpbWVvdXQ9VElNRU9VVCAiDQo+IFdvdWxkIHlvdSBjaGVjayBpdCwgdGhhbmtzICBhIGxv dA0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBkdHMgW21haWx0bzpkdHMt Ym91bmNlc0BkcGRrLm9yZ10gT24gQmVoYWxmIE9mIHNqaWFqaWF4DQo+IFNlbnQ6IE1vbmRheSwg TWF5IDE4LCAyMDE1IDE6MDcgUE0NCj4gVG86IGR0c0BkcGRrLm9yZw0KPiBTdWJqZWN0OiBbZH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