examples/multi_process: fix timer update
authorZhiyong Yang <zhiyong.yang@intel.com>
Thu, 23 Feb 2017 02:00:58 +0000 (10:00 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 May 2017 14:39:28 +0000 (16:39 +0200)
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>
examples/multi_process/l2fwd_fork/main.c

index 311a427..d922522 100644 (file)
@@ -671,6 +671,8 @@ l2fwd_main_loop(void)
                                        port_statistics[portid].tx += sent;
 
                        }
+
+                       prev_tsc = cur_tsc;
                }
 
                /*