datapath: Clean up code in vport_get_stats().