Rearranged how switch_ready and datapath_info cause ports to be initialized.