app/testpmd: add retry option
authorZhihong Wang <zhihong.wang@intel.com>
Tue, 14 Jun 2016 23:08:02 +0000 (19:08 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 16 Jun 2016 14:23:24 +0000 (16:23 +0200)
commitbf56fce1fb45b83747527e6312f61c0fcf3789b8
treedb17638aa468771e1185cf9d2aa9c0fdf13fdbd2
parentd76c19309a0b789d0f43e911db11c3ba3095819d
app/testpmd: add retry option

This patch adds retry option in testpmd to prevent most packet losses.
It can be enabled by "set fwd <mode> retry". All modes except rxonly
support this option.

Adding retry mechanism expands test case coverage to support scenarios
where packet loss affects test results.

Signed-off-by: Zhihong Wang <zhihong.wang@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
15 files changed:
app/test-pmd/Makefile
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/csumonly.c
app/test-pmd/flowgen.c
app/test-pmd/icmpecho.c
app/test-pmd/iofwd.c
app/test-pmd/macfwd-retry.c [deleted file]
app/test-pmd/macfwd.c
app/test-pmd/macswap.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
app/test-pmd/txonly.c
doc/guides/testpmd_app_ug/run_app.rst
doc/guides/testpmd_app_ug/testpmd_funcs.rst