app/testpmd: add macswap forwarding engine
authorCyril Chemparathy <cchemparathy@tilera.com>
Thu, 3 Apr 2014 17:30:15 +0000 (10:30 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 16 May 2014 11:24:52 +0000 (13:24 +0200)
commitd47388f19649d73b2b970dd8d436db72e9daf946
treeed903adf3ce5181de194beb6e5fd700cd1b8bf2b
parent769ce6b1783591b70141b4ac4c20bebea1cab155
app/testpmd: add macswap forwarding engine

This commit adds a new forwarding mode, in which the source and destination
MAC addresses of packets are swapped before forwarding according to the
port-topology in effect.  This has been designed for operation primarily with
--port-topology=loopback.

Signed-off-by: Cyril Chemparathy <cchemparathy@tilera.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test-pmd/Makefile
app/test-pmd/macswap.c [new file with mode: 0644]
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h