test/pmd_perf: fix the way to drain the port
authorJulien Meunier <julien.meunier@nokia.com>
Wed, 20 Feb 2019 21:06:08 +0000 (23:06 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 22 Feb 2019 13:39:49 +0000 (14:39 +0100)
commit4c3cd4c294f883a5cf6d75425351b855d5f4be05
treee240606af095b33a50f130129fc745913b41c9ed
parent7f949ae391527200266afa59097317ef0047111e
test/pmd_perf: fix the way to drain the port

If the port has received less than ``pkt_per_port`` packets (for
example, the port has missed some packets), the test is in an infinite
loop.

Instead of expecting a number of packet to receive, let the port to be
drained by itself. If no more packets are received, the test can
continue.

Fixes: 002ade70e933 ("app/test: measure cycles per packet in Rx/Tx")
Cc: stable@dpdk.org
Signed-off-by: Julien Meunier <julien.meunier@nokia.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
test/test/test_pmd_perf.c