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 E21EBA0A0E; Wed, 12 May 2021 16:52:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CF79A4003F; Wed, 12 May 2021 16:52:57 +0200 (CEST) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by mails.dpdk.org (Postfix) with ESMTP id 133734003E for ; Wed, 12 May 2021 16:52:56 +0200 (CEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id DBBFA10C6; Wed, 12 May 2021 10:52:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 12 May 2021 10:52:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= uoHQLOUb/63H9h/+StM5RcinKEMYND/YrWRNDBR4xPo=; b=QscNfO1Nk/cJTMph yMnjFJiepdp8Dn00OdEYiPoW5zmGS6nvpntXL28S1TMe1p98mGcbLf0ktIh68zu9 7dHB/k4RmGYS9Xh8ZTMOcVHiQ+BfvCeBDHmDJxZk9IdbEuQMctyTBMXBx4YA+agL 3k8sH5Sxq/bR6mSTR2DcxGmSXI+RYd5Fuqv6KzESZlvz7+LrTGoF24Cjn2+GT3ld 3y138iPZf9ScangqbvLaqLIrcuciqCz2XDf9LviBqKjPpijyO3IPrnJ5pXh1aHQl 7sJIH1h1ydshjPHGqfxoVrdxy7Eivb2pgKLO03NxdwGaJPlLB/zmCeuYVZs/gPGT Xf17nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=uoHQLOUb/63H9h/+StM5RcinKEMYND/YrWRNDBR4x Po=; b=XGeL+u5IYqqMJBgY+y0xa96Se8B+GGFqPRb8pidugbS2dL9xbNW3X7sLu mjuFW4x2ToWx5eDjVYh5U8H04xnh6eSXfDdYtsMoaDV0MzcgRBIF8az6JofIP4r1 WYCCt21LlLAYprX90jI9O7t/RGn1UKG7LXZ3gLPVJ9dW4ZD9ppYDKtTPVsDf6ulG 7sJdd/4X/loa/8TXlmykl8t49oNCSct01Hcd2uUOd7vslTJbDjj2F2HoxW/AbkQs rIx+kPO3U1Xqq7F3UmUcrawIHzbAeSSqoR11bOTLf6i54t8G/KqmVsxIdoFhWkR+ 2X3r8o/363fo8PwKa+2pRzJfoxk8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehvddgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtqhertddttddunecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepfeegffeihfeftedthfdvgfetkeffffdukeevtdevtddvgfevuedu veegvdeggedtnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 May 2021 10:52:52 -0400 (EDT) From: Thomas Monjalon To: Chengwen Feng Cc: ferruh.yigit@intel.com, mb@smartsharesystems.com, skori@marvell.com, jerinj@marvell.com, dev@dpdk.org Date: Wed, 12 May 2021 16:52:51 +0200 Message-ID: <10459261.CPozUDGJPf@thomas> In-Reply-To: <1620729684-14881-1-git-send-email-fengchengwen@huawei.com> References: <1619597563-56716-1-git-send-email-humin29@huawei.com> <1620729684-14881-1-git-send-email-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: Re: [dpdk-dev] [PATCH v4] eal: fix use wrong time API 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 Sender: "dev" 11/05/2021 12:41, Chengwen Feng: > Currently, the mp uses gettimeofday() API to get the time, and used as > timeout parameter. >=20 > But the time which gets from gettimeofday() API isn't monotonically > increasing. The process may fail if the system time is changed. >=20 > This fixes it by using clock_gettime() API with monotonic attribution. >=20 > Fixes: 783b6e54971d ("eal: add synchronous multi-process communication") > Fixes: f05e26051c15 ("eal: add IPC asynchronous request") > Cc: stable@dpdk.org >=20 > Signed-off-by: Chengwen Feng > Signed-off-by: Min Hu (Connor) > Acked-by: Morten Br=F8rup Applied, thanks.