app/testpmd: fix pointer reference in macswap
authorYongseok Koh <yskoh@mellanox.com>
Mon, 14 Jan 2019 10:00:21 +0000 (02:00 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commitcc28a6907b228d55f02bfbf0a40498db0a22ea62
tree58bc810f71c78d050a2ea412c4b50a518c9f2438
parent04df418f0fafa03f5f9f6326d3e1e517a1eaec47
app/testpmd: fix pointer reference in macswap

The pointer is misused and could set wrong MAC address. As a result, some
of packets can be dropped in receiver side due to MAC address mismatch.
This can be shown as performance degradation.

Bugzilla ID: 188
Fixes: 62b52877adbe ("app/testpmd: batch MAC swap for performance on x86")

Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test-pmd/macswap_sse.h