app/testpmd: added new macfwd-retry mode
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 12 Feb 2014 16:09:58 +0000 (16:09 +0000)
committerDavid Marchand <david.marchand@6wind.com>
Wed, 26 Feb 2014 09:22:33 +0000 (10:22 +0100)
commit57e852429ded674ff27ed03eb3dc6b3d6f66f393
tree1d28193b5c6bd7f55a6f4f2a66fba27f073dcfe9
parent2d23ec5631d13710bd219ae4feaca4a8607e9ae2
app/testpmd: added new macfwd-retry mode

This adds a new forwarding mode to testpmd, whereby it will forward
packets, but on a transmit failure, it will wait a small amount of time
before retrying the transmit again. This mode can be useful in some
cases to set a zero-packet loss rate at the cost of overall throughput,
especially in cases where TX ring size/buffering is constrained, such as
with virtio.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
app/test-pmd/Makefile
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/macfwd-retry.c [new file with mode: 0644]
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h