From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A44CBA046B for ; Mon, 19 Aug 2019 18:43:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 049AE1BE9A; Mon, 19 Aug 2019 18:43:33 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 458491B94A for ; Mon, 19 Aug 2019 18:43:31 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Aug 2019 09:43:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,405,1559545200"; d="scan'208";a="202375505" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 19 Aug 2019 09:43:30 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 19 Aug 2019 09:43:30 -0700 Received: from fmsmsx105.amr.corp.intel.com ([169.254.4.93]) by FMSMSX109.amr.corp.intel.com ([169.254.15.42]) with mapi id 14.03.0439.000; Mon, 19 Aug 2019 09:43:29 -0700 From: "Harris, James R" To: "dev@dpdk.org" , "Burakov, Anatoly" Thread-Topic: [dpdk-dev] [PATCH v3 1/2] timer: use rte_mp_msg to pass TSC hz to secondary procs Thread-Index: AQHVVGePFOuS5JsL1EWkrXx0CuLeJKcCsaQA Date: Mon, 19 Aug 2019 16:43:29 +0000 Message-ID: <2BC45B4F-F63B-4BFE-9143-A1C93C271C0D@intel.com> References: <156595765801.19075.15759465891004687257.stgit@jrharri1-skx> In-Reply-To: <156595765801.19075.15759465891004687257.stgit@jrharri1-skx> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/10.10.d.190811 x-originating-ip: [10.78.11.179] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v3 1/2] timer: use rte_mp_msg to pass TSC hz to secondary procs 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" DQoNCu+7v09uIDgvMTYvMTksIDEyOjE5IFBNLCAiZGV2IG9uIGJlaGFsZiBvZiBKaW0gSGFycmlz IiA8ZGV2LWJvdW5jZXNAZHBkay5vcmcgb24gYmVoYWxmIG9mIGphbWVzLnIuaGFycmlzQGludGVs LmNvbT4gd3JvdGU6DQoNCiAgICBydGVfZWFsX2luaXQoKSBpcyBtdWNoIGZhc3RlciBpbiBzZWNv bmRhcnkgcHJvY2Vzc2VzIHNpbmNlDQogICAgaHVnZXBhZ2VzIGRvbid0IG5lZWQgdG8gYmUgemVy b2VkLiAgQnV0IHRoZXJlJ3Mgc3RpbGwNCiAgICBub24tdHJpdmlhbCBkZWxheXMgaW4gdGhlIHRp bWVyIHN1YnN5c3RlbSBpbml0aWFsaXphdGlvbg0KICAgIGR1ZSB0byB0aGUgMTAwbXMgc2xlZXAg dXNlZCB0byBjYWxjdWxhdGUgVFNDIGh6LiAgU28gdXNlDQogICAgdGhlIHJ0ZV9tcF9tc2cgZnJh bWV3b3JrIHRvIGFsbG93IHNlY29uZGFyeSBwcm9jZXNzZXMNCiAgICB0byBnZXQgdGhlIFRTQyBo eiBmcm9tIHRoZSBwcmltYXJ5IHByb2Nlc3MuDQogICAgDQogICAgVGhpcyBjdXRzIHJ0ZV9lYWxf aW5pdCgpIGV4ZWN1dGlvbiB0aW1l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