From patchwork Tue May 22 00:14:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Gora X-Patchwork-Id: 40293 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D44B01DB8; Tue, 22 May 2018 02:14:28 +0200 (CEST) Received: from mail-qt0-f193.google.com (mail-qt0-f193.google.com [209.85.216.193]) by dpdk.org (Postfix) with ESMTP id E37BD1D9E for ; Tue, 22 May 2018 02:14:26 +0200 (CEST) Received: by mail-qt0-f193.google.com with SMTP id m5-v6so21269683qti.1 for ; Mon, 21 May 2018 17:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=gch8+NfLPbLq1iVkUH+bc1wn6UvjRzTMq09b3OEAqIo=; b=iL9/lQZV/zdcx0mgeeWsmCg9BE/5fRx/yPCg0Zss9rNQNUievsA6BU5yxWA9cMgdGp ISdjzEUIFy8rIsZkCoRu0C6GeIHUD4zRkdlUpzUtOzdJjq5//+qQpm8APecDT57PZhNV Y5SG/MlT2+Czunk3esrKWqtKCnmt1TFc8zkILno2oQed10nC/Lly/AAoIxQVfdDYBwkv qVn4Ir1Q2PHHwbvjFDzlE+u4fDby8hND1/RQR7CrYet0sed1CJneOPLYqX+qEPXXrn6g 9yOy7pQ282cHyspihN2Z3CD/JeYV5KWZomSj1GaxeQXfXZg00Sm77TWQPV8McwQfSPPz rnHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=gch8+NfLPbLq1iVkUH+bc1wn6UvjRzTMq09b3OEAqIo=; b=ZVIwZRye/F69aVel5PWlbF+mHvpaOQqWXQmS8lbphVx3xOqruzVkFXIVDNJJ45dYSh VPIbHUm/m5Vve94tkPrAPt6MRyUNAdzB3UW70A2/phHZ98A5By9YH0ebzHnYGgXUAT0L ruyLBjY8zwrhUj3AwFLxkzG6hDctcDebyZELcyeoSfDSrKKN1/jlneDD9VbRaZwy8+bJ DQQg/ZNGtvc3h/7wBjgWxGWhR3IVdPZeR6EzE10OkRCpunEADJxC5YiHgk2WHUL8BJX2 +K4ojZgBi3x5xNG9AN9AflWC3euWbk+t2pxVrGZKr8YPviIEYpbyjwaA1AOvt8ZDMg2a Y6yQ== X-Gm-Message-State: ALKqPwcuSvlqFNxTdRbLjhgLMBNaTcKFEPHuGCQVO+npf0z3p+uFVQgm sIYaELsiQYk1LTKnw8J2TxQ= X-Google-Smtp-Source: AB8JxZrZSgq9CTgltXPr0b4ovJfkLwpCikvcVvTHC0qXBzKy2yRyXa7I/oM/1yJkRxrZGBg9Y95OCA== X-Received: by 2002:ac8:7355:: with SMTP id q21-v6mr20494573qtp.27.1526948066115; Mon, 21 May 2018 17:14:26 -0700 (PDT) Received: from snappy.local.lan ([179.110.136.174]) by smtp.gmail.com with ESMTPSA id v189-v6sm11316531qka.79.2018.05.21.17.14.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 May 2018 17:14:25 -0700 (PDT) From: Dan Gora To: Erik Gabriel Carrillo , Jerin Jacob Cc: dev@dpdk.org, Dan Gora Date: Mon, 21 May 2018 21:14:14 -0300 Message-Id: <20180522001414.9350-1-dg@adax.com> X-Mailer: git-send-email 2.13.2.556.g5116f79 Subject: [dpdk-dev] [PATCH] eventdev: fix resetting software timer 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix the call to rte_timer_reset_sync() in sw_event_timer_cb(). The second parameter is the number of ticks, the third is the timer type. Fixes: 6750b21bd6af ("eventdev: add default software timer adapter") Cc: erik.g.carrillo@intel.com Signed-off-by: Dan Gora Acked-by: Erik Gabriel Carrillo --- lib/librte_eventdev/rte_event_timer_adapter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eventdev/rte_event_timer_adapter.c b/lib/librte_eventdev/rte_event_timer_adapter.c index 9a863f5cb..6f1d672ce 100644 --- a/lib/librte_eventdev/rte_event_timer_adapter.c +++ b/lib/librte_eventdev/rte_event_timer_adapter.c @@ -565,7 +565,7 @@ sw_event_timer_cb(struct rte_timer *tim, void *arg) * immediate expiry value, so that we process it again on the * next iteration. */ - rte_timer_reset_sync(tim, SINGLE, 0, rte_lcore_id(), + rte_timer_reset_sync(tim, 0, SINGLE, rte_lcore_id(), sw_event_timer_cb, evtim); sw_data->stats.evtim_retry_count++;