numam-dpdk/app
Wei Zhao 69986a823d app/testpmd: fix packet throughput after stats reset
Testpmd calculates packet throughput by getting a diff of previous stats
value and current one.

If a stats clear called after previous sample taken, the diff will be
negative and throughput calculation will be wrong.

If current stats value is smaller than previous one, set throughput to
zero.

Fixes: 0e10698030 ("app/testpmd: show throughput in port stats")
Cc: stable@dpdk.org

Signed-off-by: Wei Zhao <wei.zhao1@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2017-10-06 02:49:49 +02:00
..
pdump ring: return remaining entry count when dequeuing 2017-03-29 22:32:20 +02:00
proc_info app/procinfo: remove duplicate include 2017-07-16 17:30:24 +02:00
test-crypto-perf app/crypto-perf: fix operation free 2017-08-07 14:31:37 +02:00
test-eventdev app/testeventdev: fix divide by zero in stats 2017-07-31 22:43:48 +02:00
test-pmd app/testpmd: fix packet throughput after stats reset 2017-10-06 02:49:49 +02:00
Makefile app/testeventdev: introduce dpdk-test-eventdev app 2017-07-07 09:30:46 +02:00