test/pmd_perf: fix crash with multiple devices
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Fri, 27 Oct 2017 16:24:08 +0000 (18:24 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Nov 2017 16:24:08 +0000 (17:24 +0100)
commit7fd72d49ea789d35230f2f4f28a27baa1164c68c
treedba9d07ab6218dddda8cf95e3b719bc2dd25f569
parentf1b7c6b7f5eb51809aaec66a3fa31e600f2dcd12
test/pmd_perf: fix crash with multiple devices

Error can be reproduce if we run pmd_perf_autotest with more then
one device in such way:
RTE>>set_rxtx_sc poll_before_xmit
RTE>>pmd_perf_autotest

if first burst was value less than MAX_PKT_BURST in the end we overwrite
pkts_burst table for rx which was supposed for another interface.

Fixes: 002ade70e933 ("app/test: measure cycles per packet in Rx/Tx")
Cc: stable@dpdk.org
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
test/test/test_pmd_perf.c