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 3D9A5A0096 for ; Sat, 16 Mar 2019 16:07:15 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 42A0D11A4; Sat, 16 Mar 2019 16:07:14 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 31FB9DE0 for ; Sat, 16 Mar 2019 16:07:13 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2GF4WIQ008022; Sat, 16 Mar 2019 08:07:12 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=pfpt0818; bh=RS3wcJpXHNEbd8GA3e1JJunZnZoyGLfbPp+Tqewvo8g=; b=ICqSGO9uPAUAlC4UwEbV6BsqOjf7ektHFLljBEmfUIPWEHox8/bvOc9jTVMG4jq6uwPp n1QEuoGoVvQesIkTA62sDb4pdDSIOXESiT2eL7wJoh9iRgmJv4Ro+uBH6o09lACyGJi2 zGNe40qU3cBiHEKWMCNdAg2Rm8FTxw9lGP/Sz8WI7zaMUq/qz6n/aDrSYhWOwLsy84rd Pqz+dENM9X0W4w6PVi7fihhGQFqP+WyeQRvPmMVlQfe/YsNrVext1z2IpyERvgx1iq2a V0QnW77Zlw+ya+m6vpSRTDgd1GI9xCQ88bVFmaLWHJb+oCy+Lsdv3FeQ+RyWOGreNggb Qw== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2r90njgbqw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 16 Mar 2019 08:07:12 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sat, 16 Mar 2019 08:07:00 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (104.47.48.55) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Sat, 16 Mar 2019 08:07:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RS3wcJpXHNEbd8GA3e1JJunZnZoyGLfbPp+Tqewvo8g=; b=eo8Y2rNXpWhurXIUUQug0l5IwJLZoGrJgsPrw9gopDN/z/eVi8tQWOlC/dKxirp8ctKCLf6s8+3RTBhDnLLZKkd7TPpRKxroAxD+BiJgsMT16uYgmVae5TOeDkcOO4Oc8UxiWCpdi13CHE9s7+5EdI/BC/f+3yMc489ti1mHOjk= Received: from CY4PR1801MB1863.namprd18.prod.outlook.com (10.171.255.14) by CY4PR1801MB1909.namprd18.prod.outlook.com (10.171.255.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.14; Sat, 16 Mar 2019 15:06:59 +0000 Received: from CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::286d:5e93:974e:8bfa]) by CY4PR1801MB1863.namprd18.prod.outlook.com ([fe80::286d:5e93:974e:8bfa%2]) with mapi id 15.20.1709.011; Sat, 16 Mar 2019 15:06:59 +0000 From: Pavan Nikhilesh Bhagavatula To: "keith.wiles@intel.com" CC: "stephen@networkplumber.org" , "thomas@monjalon.net" , "dev@dpdk.org" , Jerin Jacob Kollanukkaran Thread-Topic: [EXT] Re: [dpdk-dev] [PATCH v2 2/2] eal: roundup tsc frequency when estimating it Thread-Index: AQHU28ZfRUfyFSEKwUiYLm/lxX2a+6YOVYsAgAAGsYA= Date: Sat, 16 Mar 2019 15:06:58 +0000 Message-ID: <3e56d8dbbddfde0c48a26c6257af9c43a42f99dd.camel@marvell.com> References: <20181129083138.23029-1-pbhagavatula@caviumnetworks.com> <20190316070302.32432-1-pbhagavatula@marvell.com> <20190316070302.32432-2-pbhagavatula@marvell.com> <86480C64-4ECD-4F4D-968E-5716D02D7D83@intel.com> In-Reply-To: <86480C64-4ECD-4F4D-968E-5716D02D7D83@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [115.113.156.3] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a8bb38a5-a66d-49aa-a7b2-08d6aa210988 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:CY4PR1801MB1909; x-ms-traffictypediagnostic: CY4PR1801MB1909: x-microsoft-antispam-prvs: x-forefront-prvs: 09781D4C35 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(396003)(39850400004)(366004)(136003)(376002)(199004)(189003)(186003)(53546011)(76176011)(6506007)(3846002)(256004)(55236004)(26005)(5640700003)(14454004)(102836004)(99286004)(6116002)(81156014)(36756003)(478600001)(25786009)(66066001)(8676002)(86362001)(106356001)(2351001)(6436002)(118296001)(476003)(105586002)(11346002)(6486002)(446003)(71190400001)(6916009)(486006)(2501003)(71200400001)(316002)(2616005)(8936002)(6512007)(6246003)(54906003)(107886003)(7736002)(93886005)(305945005)(229853002)(81166006)(53936002)(2906002)(68736007)(4326008)(5660300002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1801MB1909; H:CY4PR1801MB1863.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: IcWbotLvTIRT8yOdUbueYJhucIImmlLD7y8SgRlKfGk99R8gPDfiBj1q3gzNHMwQsgnNIsI+i18nhtnf3h6GMuhdfXpsTFV3eBCM6FK7Slioq6YIQXBp+/MBB1yOEyrTDDyahORPtDHSlDkAxjrfrr3okv6wTR6qcM/LX7AtO3xizr4yoiR7MTa2lsfpZVBov3Of7IEHd8Hg5bDRgtgnDU/RYh05+5jAWBrSqNFlbdApnlI38lxVT+OzceWKhYxDR94fsWH1/Zbu3QbsKDgKpEgJnLOpn7+iVUNueKWCXLq82ZXVkHsWXqxlhEWiAvTGdTD1Jb1UvJEsMcYK1cvMCifn00SDiyWpFGeJZI8fEIGhN5HCkjSTTVOswsfRMwJdaGtFTcgUdq11Un4TRlgwLMN8XdylRdID54DFuyulcdg= Content-Type: text/plain; charset="UTF-8" Content-ID: <16B26DB03FEC2F4D8032F2075A633AF0@namprd18.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: a8bb38a5-a66d-49aa-a7b2-08d6aa210988 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2019 15:06:58.8366 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1801MB1909 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-16_11:, , signatures=0 Subject: Re: [dpdk-dev] [EXT] Re: [PATCH v2 2/2] eal: roundup tsc frequency when estimating it 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: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