virtio-net: Update virtio-net curr_queue_pairs in vdpa backends
commitca8717f931463833da3ce5ca9712c9341ba8c308
authorEugenio Pérez <eperezma@redhat.com>
Tue, 6 Sep 2022 15:07:18 +0000 (6 17:07 +0200)
committerJason Wang <jasowang@redhat.com>
Tue, 27 Sep 2022 07:14:37 +0000 (27 15:14 +0800)
treea3bc3193415f8c0bac156e25e0ba6eec17f35f2e
parent275ba561cd3f7b17675046792ecbdea184e948f8
virtio-net: Update virtio-net curr_queue_pairs in vdpa backends

It was returned as error before. Instead of it, simply update the
corresponding field so qemu can send it in the migration data.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Si-Wei Liu <si-wei.liu@oracle.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c