app/testpmd: cleanup parameter checking