summaryrefslogtreecommitdiffstats
path: root/drivers/vdpa
diff options
context:
space:
mode:
authorEli Cohen <elic@nvidia.com>2022-01-05 12:46:44 +0100
committerMichael S. Tsirkin <mst@redhat.com>2022-01-15 00:50:54 +0100
commitcbe777e98b3a420a6d66b7ce7780334c48eccc88 (patch)
tree9956e2b9ea7a5290c9c6d52cbfd41de17b331262 /drivers/vdpa
parentvdpa/mlx5: Report max device capabilities (diff)
downloadlinux-cbe777e98b3a420a6d66b7ce7780334c48eccc88.tar.xz
linux-cbe777e98b3a420a6d66b7ce7780334c48eccc88.zip
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>
Diffstat (limited to 'drivers/vdpa')
-rw-r--r--drivers/vdpa/vdpa_sim/vdpa_sim_net.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c
index 76dd24abc791..46aabc73263a 100644
--- a/drivers/vdpa/vdpa_sim/vdpa_sim_net.c
+++ b/drivers/vdpa/vdpa_sim/vdpa_sim_net.c
@@ -191,6 +191,7 @@ static struct vdpa_mgmt_dev mgmt_dev = {
.ops = &vdpasim_net_mgmtdev_ops,
.config_attr_mask = (1 << VDPA_ATTR_DEV_NET_CFG_MACADDR |
1 << VDPA_ATTR_DEV_NET_CFG_MTU),
+ .max_supported_vqs = VDPASIM_NET_VQ_NUM,
};
static int __init vdpasim_net_init(void)