[dpdk-dev] [PATCH] l2fwd_fork: fix missing updating the prev_tsc
Zhiyong Yang
zhiyong.yang at intel.com
Thu Feb 23 03:00:58 CET 2017
To miss updating the variable prev_tsc in function l2fwd_main_loop()
The patch fixes it.
Fixes:e2366e74e029("examples: use buffered Tx")
CC: sergio.gonzalez.monroy at intel.com
Signed-off-by: Zhiyong Yang <zhiyong.yang at intel.com>
---
examples/multi_process/l2fwd_fork/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/examples/multi_process/l2fwd_fork/main.c b/examples/multi_process/l2fwd_fork/main.c
index 2d951d9..6052c84 100644
--- a/examples/multi_process/l2fwd_fork/main.c
+++ b/examples/multi_process/l2fwd_fork/main.c
@@ -672,6 +672,8 @@ l2fwd_main_loop(void)
port_statistics[portid].tx += sent;
}
+
+ prev_tsc = cur_tsc;
}
/*
--
2.7.4
More information about the dev
mailing list