lib/rstp: Use hmap instead of a list for ports.