[dpdk-stable] patch 'examples/ip_pipeline: fix timer period unit' has been queued to LTS release 17.11.1
Yuanhan Liu
yliu at fridaylinux.org
Wed Feb 7 09:57:11 CET 2018
Hi,
FYI, your patch has been queued to LTS release 17.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 02/09/18. So please
shout if anyone has objections.
Thanks.
--yliu
---
>From ad2beec0ac6233e099fffce0f2135a1c31d949f7 Mon Sep 17 00:00:00 2001
From: Bao-Long Tran <longtb5 at viettel.com.vn>
Date: Wed, 31 Jan 2018 15:48:16 +0700
Subject: [PATCH] examples/ip_pipeline: fix timer period unit
[ upstream commit 07b7b0b5a922a44c24252cb62e4ebba3b8774674 ]
The timer_period option specified by users via config file
should have unit of 1 millisecond. However timer_period is
internally converted to unit of 10 millisecond.
Fixes: 4e14069328fc ("examples/ip_pipeline: measure CPU utilization")
Signed-off-by: Bao-Long Tran <longtb5 at viettel.com.vn>
Reviewed-by: Jasvinder Singh <jasvinder.singh at intel.com>
---
examples/ip_pipeline/init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/ip_pipeline/init.c b/examples/ip_pipeline/init.c
index e56e404..ffd0fc2 100644
--- a/examples/ip_pipeline/init.c
+++ b/examples/ip_pipeline/init.c
@@ -1726,7 +1726,7 @@ app_init_pipelines(struct app_params *app)
data->ptype = ptype;
data->timer_period = (rte_get_tsc_hz() *
- params->timer_period) / 100;
+ params->timer_period) / 1000;
}
}
--
2.7.4
More information about the stable
mailing list