Skip to content

Commit cbe777e

Browse files
elic307imstsirkin
authored andcommitted
vdpa/vdpa_sim: Configure max supported virtqueues
Configure max supported virtqueues on the management device. Signed-off-by: Eli Cohen <elic@nvidia.com> Link: https://lore.kernel.org/r/20220105114646.577224-13-elic@nvidia.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
1 parent 79de65e commit cbe777e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/vdpa/vdpa_sim/vdpa_sim_net.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ static struct vdpa_mgmt_dev mgmt_dev = {
191191
.ops = &vdpasim_net_mgmtdev_ops,
192192
.config_attr_mask = (1 << VDPA_ATTR_DEV_NET_CFG_MACADDR |
193193
1 << VDPA_ATTR_DEV_NET_CFG_MTU),
194+
.max_supported_vqs = VDPASIM_NET_VQ_NUM,
194195
};
195196

196197
static int __init vdpasim_net_init(void)

0 commit comments

Comments
 (0)