From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id CB6E2A00C5; Fri, 8 Jul 2022 16:47:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 364E940A83; Fri, 8 Jul 2022 16:47:18 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id 986ED4021E; Fri, 8 Jul 2022 16:47:16 +0200 (CEST) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D4F565C01A9; Fri, 8 Jul 2022 10:47:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 08 Jul 2022 10:47:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1657291634; x= 1657378034; bh=FTYUdKj/1g5pKxQ9fKChIwxT2iBwbGX55Ke+g5nS6CU=; b=I 0orjMInM52d0NSuetFNte9dE763fmB6l6fNe2hIYEXxlNBY4mMJSqtwPSq5plDGv 2AEP061zm8nsqEHpNHDOA17fziS+luqBBmnhPf08+o0lEjxvCLuLZYnG8EiU0dal ITFFa5mxzLT1pxNl5LquTFWY0oKkrp+wsCwne29s3TZEDx/9tbMCJvXc5XKYBQOO W0SiZr3QKHuglkiFBlzzQ+I68yZn2BufRpdGqmARa5Tqd9Y4CseXabxcuPyjzRPL YYQ0UXbi20EFtktwODXoG60c4InA1/QeQckwM6bDKi6CxG+CI+JnPznU4pX7l0hr buC0v/lzcSxEDELIK6TwQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1657291634; x= 1657378034; bh=FTYUdKj/1g5pKxQ9fKChIwxT2iBwbGX55Ke+g5nS6CU=; b=v glH8LJ5hStKkQhrcNqx6IYMJQu0fk4P1I/1OnZrwiv9/iLePexxM2MFTNbIxrMeo oFrH0Wcl6tIR8L64blOg8CGhksvgkCB8Df40bbPqhubTV9vF5Yzolxr5YrahMn+H 53EORztf675j28Q/1CtrMybMWYa+qJjejkcF/ddhciFIxYgO715vhEtmo/xnEXzF kPwdfSiuPStcy3ZxPXbeBPPgtXV5la+WlCta0wsrdtiQ+ym9+87aef3Lz/+a8ZAZ gSZKZQOh4qQKAXJSmOkZ128kesNsTtkaZRCAO0QL5QX6dFjo0tyq0awtGPCuG8ro C5zh6VokC7I2fVmPI9Kjw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeijedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedtjeeiieefhedtfffgvdelteeufeefheeujefgueetfedttdei kefgkeduhedtgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Jul 2022 10:47:13 -0400 (EDT) From: Thomas Monjalon To: Omar Awaysa Cc: dev@dpdk.org, rasland@nvidia.com, Raja Zidane , stable@dpdk.org Subject: Re: [PATCH v2] examples/link_status_interrupt: fix stats refresh rate Date: Fri, 08 Jul 2022 16:47:12 +0200 Message-ID: <5589546.vanWaX58re@thomas> In-Reply-To: <20220707082234.2787-1-omara@nvidia.com> References: <20220530093702.11745-1-rzidane@nvidia.com> <20220707082234.2787-1-omara@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 07/07/2022 10:22, Omar Awaysa: > From: Raja Zidane > > TIMER_MILLISECOND is defined as the number of cpu cycles per millisecond, > current definition is correct for cores with frequency of 2GHZ, for cores > with different frequency, it caused different periods between refresh, > (i.e. the definition is about 14ms on ARM cores). > > Use dpdk API to get CPU frequency, to define TIMER_MILLISECOND. > > Fixes: af75078fece3 ("first public release") > Cc: stable@dpdk.org > > Signed-off-by: Omar Awaysa Applied (with indent fixed), thanks.