On 3/22/19 2:37 PM, David Marchand wrote:
fwd engine statistics are stored as unsigned int (32bits) and can wrap quite quickly. Example: sending 7mpps for 614s gives us 4298000000 packets => 0x1002e4680 larger than 32bits. testpmd reports forwarding stats as: RX-packets: 3500381 TX-packets: 3500010 TX-dropped: 371 While the port and accumulated stats are reported as 64bits: RX-packets: 4298467677 RX-dropped: 0 RX-total: 4298467677 TX-packets: 4298467306 TX-dropped: 371 TX-total: 4298467677 Fixes: af75078fece3 ("first public release") Cc: sta...@dpdk.org Signed-off-by: David Marchand <david.march...@redhat.com> Reviewed-by: Andrew Rybchenko <arybche...@solarflare.com> --- Changelog since v2: - split out of the previous patch with a dedicated commitlog - Cc'd stable --- app/test-pmd/testpmd.c | 51 +++++++++++++++++--------------------------------- app/test-pmd/testpmd.h | 12 ++++++------ 2 files changed, 23 insertions(+), 40 deletions(-)
Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>