net/iavf: move device state flag