bridge: Use hash table instead of sparse array for bridge ports.