net/virtio: extract common part for in-order functions