vdpa: Extract get features part from vhost_vdpa_get_max_queue_pairs
commit8170ab3f43989680491d00f1017f60b25d346114
authorEugenio Pérez <eperezma@redhat.com>
Wed, 20 Jul 2022 06:59:44 +0000 (20 08:59 +0200)
committerJason Wang <jasowang@redhat.com>
Wed, 20 Jul 2022 08:58:08 +0000 (20 16:58 +0800)
tree929cf86703fb3ab2df416f7b4aeefd3f9cd3df10
parent2df4dd31e194c94da7d28c02e92449f4a989fca9
vdpa: Extract get features part from vhost_vdpa_get_max_queue_pairs

To know the device features is needed for CVQ SVQ, so SVQ knows if it
can handle all commands or not. Extract from
vhost_vdpa_get_max_queue_pairs so we can reuse it.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/vhost-vdpa.c