bridge: Change bridge's 'ports' member from array to hmap.