Message ID | D09D8D35-BE32-48DD-B070-030C590744F4@akamai.com (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 7838B6A87; Tue, 4 Oct 2016 23:39:50 +0200 (CEST) Received: from prod-mail-xrelay06.akamai.com (prod-mail-xrelay06.akamai.com [96.6.114.98]) by dpdk.org (Postfix) with ESMTP id F3C593238 for <dev@dpdk.org>; Tue, 4 Oct 2016 23:39:48 +0200 (CEST) Received: from prod-mail-xrelay06.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id 566E2496C21; Tue, 4 Oct 2016 21:39:48 +0000 (GMT) Received: from prod-mail-relay09.akamai.com (prod-mail-relay09.akamai.com [172.27.22.68]) by prod-mail-xrelay06.akamai.com (Postfix) with ESMTP id 36173496C20; Tue, 4 Oct 2016 21:39:48 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; s=a1; t=1475617188; bh=mqTDR3xGkLypFNwTX4GxTBsF4hPlgqaSxDUDxVXdpuM=; l=2484; h=From:To:Date:References:In-Reply-To:From; b=brqM3Y4mxoIEexCWaycbUQ69BTjahPQqPSm+qU7ZTEw6XsTMi7HeQMnPniWKuINju WuY79wVvJsP4r43uqXee10rvwdSpbJHnA6lINh/rV3rdnEOK+g6fn+NNMuXdaotMu/ YaFTFdA654R1B+04yK+F8s3q9PAguktcSDGp8Kcc= Received: from email.msg.corp.akamai.com (ustx2ex-cas2.msg.corp.akamai.com [172.27.25.31]) by prod-mail-relay09.akamai.com (Postfix) with ESMTP id 334451E07C; Tue, 4 Oct 2016 21:39:48 +0000 (GMT) Received: from ustx2ex-dag1mb6.msg.corp.akamai.com (172.27.27.107) by ustx2ex-dag1mb4.msg.corp.akamai.com (172.27.27.104) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 4 Oct 2016 16:39:47 -0500 Received: from ustx2ex-dag1mb6.msg.corp.akamai.com ([172.27.27.107]) by ustx2ex-dag1mb6.msg.corp.akamai.com ([172.27.27.107]) with mapi id 15.00.1178.000; Tue, 4 Oct 2016 14:39:46 -0700 From: "Sanford, Robert" <rsanford@akamai.com> To: Karmarkar Suyash <skarmarkar@sonusnet.com>, "dev@dpdk.org" <dev@dpdk.org>, "thomas.monjalon@6wind.com" <thomas.monjalon@6wind.com>, "reshma.pattan@intel.com" <reshma.pattan@intel.com> Thread-Topic: [PATCH v2]:rte_timer:timer lag issue correction Thread-Index: AQHSEDPB2NrTgxc9oUadR+nlImJRw6CENQnwgAA/PYCADCZJ4IAIhvuA Date: Tue, 4 Oct 2016 21:39:46 +0000 Message-ID: <D09D8D35-BE32-48DD-B070-030C590744F4@akamai.com> References: <BN3PR03MB14310D01FAADE08B3E1EE384B3F60@BN3PR03MB1431.namprd03.prod.outlook.com> <20160921205427.14116-1-skarmarkar@sonusnet.com> <BN3PR03MB14312FD1C71886E4A3AC4A25B3CE0@BN3PR03MB1431.namprd03.prod.outlook.com> In-Reply-To: <BN3PR03MB14312FD1C71886E4A3AC4A25B3CE0@BN3PR03MB1431.namprd03.prod.outlook.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/f.1a.0.160910 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.19.43.29] Content-Type: text/plain; charset="utf-8" Content-ID: <D92B2792EE9045499530DB59CD925857@akamai.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2]:rte_timer:timer lag issue correction X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Sanford, Robert
Oct. 4, 2016, 9:39 p.m. UTC
Yes, this change makes sense. I ran timer tests and they passed. Acked-by: Robert Sanford <rsanford@akamai.com> Thanks, Robert On 9/29/16, 10:27 AM, "Karmarkar Suyash" <skarmarkar@sonusnet.com> wrote: Hello, Can you please review the changes and suggest next steps? Thanks Regards Suyash Karmarkar -----Original Message----- From: Karmarkar Suyash Sent: Wednesday, September 21, 2016 4:54 PM To: dev@dpdk.org; thomas.monjalon@6wind.com; rsanford@akamai.com; reshma.pattan@intel.com Cc: Karmarkar Suyash <skarmarkar@sonusnet.com> Subject: [PATCH v2]:rte_timer:timer lag issue correction For Periodic timers ,if the lag gets introduced, the current code added additional delay when the next peridoc timer was initialized by not taking into account the delay added, with this fix the code would start the next occurrence of timer keeping in account the lag added.Corrected the behavior. Fixes: 9b15ba89 ("timer: use a skip list") Karmarkar Suyash (1): Signed-off-by: Karmarkar Suyash <skarmarkar@sonusnet.com> lib/librte_timer/rte_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- lib/librte_timer/rte_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.3.windows.1
Comments
> > For Periodic timers ,if the lag gets introduced, the current code > > added additional delay when the next peridoc timer was initialized > > by not taking into account the delay added, with this fix the code > > would start the next occurrence of timer keeping in account the > > lag added.Corrected the behavior. > > > > Fixes: 9b15ba89 ("timer: use a skip list") > > > > Karmarkar Suyash (1): > > Signed-off-by: Karmarkar Suyash <skarmarkar@sonusnet.com> > > Yes, this change makes sense. I ran timer tests and they passed. > > Acked-by: Robert Sanford <rsanford@akamai.com> Applied, thanks
diff --git a/lib/librte_timer/rte_timer.c b/lib/librte_timer/rte_timer.c index 43da836..18782fa 100644 --- a/lib/librte_timer/rte_timer.c +++ b/lib/librte_timer/rte_timer.c @@ -613,7 +613,7 @@ void rte_timer_manage(void) status.owner = (int16_t)lcore_id; rte_wmb(); tim->status.u32 = status.u32; - __rte_timer_reset(tim, cur_time + tim->period, + __rte_timer_reset(tim, tim->expire + tim->period, tim->period, lcore_id, tim->f, tim->arg, 1); rte_spinlock_unlock(&priv_timer[lcore_id].list_lock); }