An Efficient and Deadlock-Free Network Reconfiguration Protocol