test: avoid hang if queues are full and Tx fails
authorRakesh Kudurumalla <rkudurumalla@marvell.com>
Tue, 20 Jul 2021 16:50:52 +0000 (22:20 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 May 2022 08:01:05 +0000 (10:01 +0200)
commit36edf3cc9ba18fb33c880518f5bb67765c3b99d4
tree229fd6a2f6de62a132ef2922439e4021bb04c606
parent0354e8e860389cf412dd051626af39b9a01e6c9c
test: avoid hang if queues are full and Tx fails

Current pmd_perf_autotest() in continuous mode tries
to enqueue MAX_TRAFFIC_BURST completely before starting
the test. Some drivers cannot accept complete
MAX_TRAFFIC_BURST even though rx+tx desc count can fit it.
This patch changes behaviour to stop enqueuing after few
retries.

Fixes: 002ade70e933 ("app/test: measure cycles per packet in Rx/Tx")
Cc: stable@dpdk.org
Signed-off-by: Rakesh Kudurumalla <rkudurumalla@marvell.com>
app/test/test_pmd_perf.c