From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0084.outbound.protection.outlook.com [104.47.38.84]) by dpdk.org (Postfix) with ESMTP id 9F9917DEC for ; Fri, 16 Sep 2016 17:59:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=SonusNetworks.onmicrosoft.com; s=selector1-sonusnet-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=c0mC6ICJkYWS63Qx7G2JQF/h1tMK4PEgWj5eB602zkA=; b=IC/9arWiyD3wMXnb8ZKVMHNSFUk8BraoHyPmyY+5WCHW1X3ZwSSla4nDmtqRvEdFk2Je+8PLHDXvx5NEKacWOdiNdyUhR44wLFmBJPvz3Vp3wKokesG6EwdRNAQF4y9TO63eFP2ZPuS7KWnE2HdHopOYgyE97bVLgOYpER01X2U= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=skarmarkar@sonusnet.com; Received: from SKARMARKAR-LMA.sonusnet.com (208.45.178.4) by BY1PR03MB1435.namprd03.prod.outlook.com (10.162.127.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.8; Fri, 16 Sep 2016 15:59:22 +0000 From: Karmarkar Suyash To: CC: Karmarkar Suyash Date: Fri, 16 Sep 2016 11:58:55 -0400 Message-ID: <20160916155855.13924-1-skarmarkar@sonusnet.com> X-Mailer: git-send-email 2.9.3.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [208.45.178.4] X-ClientProxiedBy: BN3PR0301CA0043.namprd03.prod.outlook.com (10.160.152.139) To BY1PR03MB1435.namprd03.prod.outlook.com (10.162.127.153) X-MS-Office365-Filtering-Correlation-Id: cdee7d80-47e7-4da5-2dbe-08d3de4a6d51 X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1435; 2:rgUKL2LM6xrHpLQGrnaeqGVpOhD9E+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OscnBeX0Tac4npdfDcO0ZnHAFjv5fIpOGcEbfFrQABe5hyHlWyz8CXAqwJwGN2DYVDNL8DE= X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1435; 31:N6rajkGdAB/ZPgwsLE3+azcdKDvGYAXVp8Qugd1WaZeaBlOoI6EdHo+tFIXN7gYWwgZlO3TmqDWNZpEZCJsXxjMz26V1getaWOfEcbxgv5ab7rjQT41r5GgalpoCyzwIEfrZbT2eirvifDja4EdpDFGEZxHV4ugB1F9sx8orSpc6ZxBAvjZ816hIMKPBFAjb3LZFcPAV/pq2Xnslsh2AeY/Z5jsUsCM0nj2zHkOc5I8=; 20:DQxG9HWMKK/AtydWQhdZYivpKGLMldKJAQLfgsHE7rIsIbryXgOUR0J8qwIvERSkTaxbfyDU1nS7n2hcBLgnblWfISbDD3s/m0YRywnUoLMLnhdJBRZDeqn+nuq8pe6lNMqbNu3qQKxzRdlHYHgHWcAzci7q9WQ79tJeFSJ1W+MD0Fpnw8HY2CP4aHTLVPZIGMnkHPaV5v7u0dGrzaegni0a9fpPogc82n4m+nTxZmVhhhD3AuK3jWNswUSC4+eKCUvOAMV1U9DDUd9P2TnoRFjXNHI5E902af9shhzkZP2JQDNAQpF/NVZfGh/hHsBVQZWeR9hjYC5OcsnsyXT/DZ2DCU/CQWCv082kdDjrwGc8v0tNmwNuzDXkWngCi365UtL0Y0p60y5sv4UHmaQXsl4sz5d48m22uTbZd62PLIEFDFoH7xRZdiAdR19Q9TEsg2e7YrokrJ5+QObze54c15lAPIXJnHHahkpPLUT10Fq94GcEI5s0iMH4UP7Vz6GV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:BY1PR03MB1435; BCL:0; PCL:0; RULEID:; SRVR:BY1PR03MB1435; X-Microsoft-Exchange-Diagnostics: 1; BY1PR03MB1435; 4:Co/6+ugJQCFHA2R1Yrm4AAxCW3flRrDYXkNkF1LyIFjpqfXDMNOV+SBCsdwoIy/fzGctdqowNBO8y+iye82Qtb33OAN6LczsCL0afJL9HfV+ENF8tYu3HHSZpidKciqcR+aJak/Q8DpPSObLnmgyG+++APLgZv2gTTfShJnNTkEHIcbMYN8IUc1hMCMgfa9hIvFSt0yT7miS176r4xtItDqWbLz0+3EPLLu5cYK6jfBIqg0J9vF8jdtq5mNfK9b1Jfyf8hS0oKzYGVJb0yjJKDwlgFenYvGl0Syin/H7Bu2ooihLZIec6cSgNUpsrYjhYO4NYpEaNfSXzteqIJ1Ku6K2RgJ09FVoHRGixrNJY4coGxN5fwExlrNVG0LqYtO5WpnV5MvGfZlGDYXlLbn7AQ== X-Forefront-PRVS: 0067A8BA2A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(199003)(189002)(7846002)(305945005)(4001430100002)(2906002)(50226002)(69596002)(110136003)(5660300001)(81166006)(81156014)(8676002)(5003940100001)(19580395003)(19580405001)(47776003)(66066001)(105586002)(50466002)(229853001)(2351001)(48376002)(106356001)(189998001)(7736002)(42186005)(53416004)(50986999)(101416001)(6116002)(450100001)(1076002)(3846002)(586003)(86362001)(107886002)(4326007)(97736004)(92566002)(33646002)(77096005)(36756003)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR03MB1435; H:SKARMARKAR-LMA.sonusnet.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: sonusnet.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR03MB1435; 23:v+WouclaSDvwUYlneVOYabDS7pfwLAO7iOPkKx2ED?= =?us-ascii?Q?qR8mroQi/4IWfWpVqIaTL09tRB4T8g5nugNSr4mrzhbhFiMYfYhVyTVdnHyy?= =?us-ascii?Q?6rC5dOVU67qkrK6riavtuZ0WvvG7cPLJ04oJM2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OriginatorOrg: sonusnet.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2016 15:59:22.8321 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1435 Subject: [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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2016 15:59:25 -0000 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:ba885531ac26 ("rte_timer: timer lag issue") Karmarkar Suyash (1): Signed-off-by: Karmarkar Suyash 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(-) 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); } -- 2.9.3.windows.1