app/testpmd: fix pointer reference in macswap