app/testpmd: move checksum config display in a function