app/testpmd: fix integer overflow