datapath: Don't directly access port array in query_port().