app/testpmd: swap MAC in IEEE1588 forwarding
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 10 Dec 2015 09:28:27 +0000 (09:28 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 10 Dec 2015 21:20:08 +0000 (22:20 +0100)
commit2704ad28ade10ea505e8827d1d0023ca84f40d23
tree957021589546b56cafe6a80770d82a03bceedfff
parente01993bf82e8c0af74def9a38b92b56932df157f
app/testpmd: swap MAC in IEEE1588 forwarding

IEEE1588 forwarding mode uses same port to receive and transmit packets.
In this mode, the MAC address in the packets are not touched,
and therefore, packets could be sent with the same destination
MAC address as the MAC address of the port that is transmitting,
which causes the packet to be dropped in some NICs.

In order to avoid this scenario, MAC addresses are swapped
before packet is sent out.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
app/test-pmd/ieee1588fwd.c