From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 4F27FA0679 for ; Wed, 3 Apr 2019 11:08:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1E9505592; Wed, 3 Apr 2019 11:08:05 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id A12715589 for ; Wed, 3 Apr 2019 11:08:03 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Apr 2019 02:08:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,304,1549958400"; d="scan'208";a="160959283" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga001.fm.intel.com with ESMTP; 03 Apr 2019 02:08:02 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 3 Apr 2019 02:08:02 -0700 Received: from HASMSX110.ger.corp.intel.com (10.184.198.28) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 3 Apr 2019 02:08:02 -0700 Received: from hasmsx107.ger.corp.intel.com ([169.254.2.23]) by HASMSX110.ger.corp.intel.com ([169.254.6.18]) with mapi id 14.03.0415.000; Wed, 3 Apr 2019 12:07:59 +0300 From: "Krakowiak, LukaszX" To: "Burakov, Anatoly" , "Hunt, David" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH 3/3] test: add UT for power turbo feature Thread-Index: AQHU1O6rF4xe8A6UNUO1t3UdJhhZXKYfk9AAgAq4XvA= Date: Wed, 3 Apr 2019 09:07:58 +0000 Message-ID: References: <20190307135950.30738-1-lukaszx.krakowiak@intel.com> <20190307135950.30738-4-lukaszx.krakowiak@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWQ3NzRlZjMtYTIxZS00Yzc1LWI0MWQtZjA3YjY4NzNjNDEzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVGlkemg1aXlGXC9VVUlKUE5haVBjUDB0aUQ5NzNGZWpnekZPVTI0S1wvS1JTY21qV200N2RSVlRCcVwvem5pd1dtQyJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.103.104.101] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 3/3] test: add UT for power turbo feature 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190403090758.W041BgdeZxmwtqK04w8Ucm8oZjpOjMABtOxpgRXgxFk@z> SGksIA0KDQo+IE9uIDA3LU1hci0xOSAxOjU5IFBNLCBMdWthc3ogS3Jha293aWFrIHdyb3RlOg0K PiA+IEFkZCBVVCBjaGVja19wb3dlcl90dXJiby4NCj4gPg0KPiA+IFN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