vdpa: set the virtqueue num during register
authorJason Wang <jasowang@redhat.com>
Tue, 23 Feb 2021 06:19:04 +0000 (14:19 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Feb 2021 19:26:00 +0000 (14:26 -0500)
commitf00bdce0455233a0b76dae6364442dca717a574c
tree265b9d9e118752c7bba94071df7f3c767c1835b0
parent16c10bede8b3d8594279752bf53153491f3f944f
vdpa: set the virtqueue num during register

This patch delay the queue number setting to vDPA device
registering. This allows us to probe the virtqueue numbers between
device allocation and registering.

Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20210223061905.422659-3-jasowang@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/ifcvf/ifcvf_main.c
drivers/vdpa/mlx5/net/mlx5_vnet.c
drivers/vdpa/vdpa.c
drivers/vdpa/vdpa_sim/vdpa_sim.c
drivers/vdpa/vdpa_sim/vdpa_sim_net.c
include/linux/vdpa.h