numam-dpdk/app/test-pmd
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
..
cmdline_flow.c app/testpmd: fix token matching in flow command 2017-07-21 01:03:37 +03:00
cmdline.c app/testpmd: remove unnecessary void casts 2017-10-06 02:49:48 +02:00
config.c app/testpmd: fix packet throughput after stats reset 2017-10-06 02:49:49 +02:00
csumonly.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
flowgen.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
icmpecho.c app/testpmd: fix typos 2017-03-10 14:11:56 +01:00
ieee1588fwd.c app/testpmd: implement basic support for flow API 2016-12-23 10:19:15 +01:00
iofwd.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
macfwd.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
macswap.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
Makefile net/bnxt: support Tx loopback, set VF MAC and queues drop 2017-06-12 10:41:28 +01:00
parameters.c app/testpmd: fix usage message 2017-07-31 23:39:43 +02:00
rxonly.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00
testpmd.c app/testpmd: remove unnecessary void casts 2017-10-06 02:49:48 +02:00
testpmd.h app/testpmd: add port reset command 2017-09-13 23:08:11 +02:00
txonly.c app/testpmd: remove duplicate includes 2017-07-16 17:30:24 +02:00