app/testpmd: fix port id allocation