port.lua: Kludge to print statistics after 10G test runs.

The statistics generation needs to be cleaned up and generalized to
also work with virtio.