vdpa: remove hard coded virtq num
authorMax Gurtovoy <maxg@mellanox.com>
Tue, 4 Aug 2020 16:20:42 +0000 (19:20 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Aug 2020 22:39:18 +0000 (18:39 -0400)
commita9974489b61c09c702c85c6cba3d1a3fd1be7a15
treea05beae6faf4eefaec70b2bf0311d9ae085794a5
parentde91a4d0e725db34db64502fad84e8fb1026146b
vdpa: remove hard coded virtq num

This will enable vdpa providers to add support for multi queue feature
and publish it to upper layers (vhost and virtio).

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20200804162048.22587-7-eli@mellanox.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/ifcvf/ifcvf_main.c
drivers/vdpa/vdpa.c
drivers/vdpa/vdpa_sim/vdpa_sim.c
drivers/vhost/vdpa.c
include/linux/vdpa.h