summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2017-02-23 10:00:58 +0800
committerThomas Monjalon <thomas@monjalon.net>2017-05-01 16:39:28 +0200
commitab69581b74232b9e5cffd104672b0afb7096163a (patch)
treee5c3a9673069e8f6a179549417ec50938ba10569
parentb7162fee8811461fb87dd9c5b843b3d1ba283e5c (diff)
downloaddpdk-stable-ab69581b74232b9e5cffd104672b0afb7096163a.zip
dpdk-stable-ab69581b74232b9e5cffd104672b0afb7096163a.tar.gz
dpdk-stable-ab69581b74232b9e5cffd104672b0afb7096163a.tar.xz
examples/multi_process: fix timer update
To miss updating the variable prev_tsc in function l2fwd_main_loop() The patch fixes it. Fixes: e2366e74e029 ("examples: use buffered Tx") Cc: stable@dpdk.org Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
-rw-r--r--examples/multi_process/l2fwd_fork/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/multi_process/l2fwd_fork/main.c b/examples/multi_process/l2fwd_fork/main.c
index 311a427..d922522 100644
--- a/examples/multi_process/l2fwd_fork/main.c
+++ b/examples/multi_process/l2fwd_fork/main.c
@@ -671,6 +671,8 @@ l2fwd_main_loop(void)
port_statistics[portid].tx += sent;
}
+
+ prev_tsc = cur_tsc;
}
/*