Skip to content

Commit b2ce619

Browse files
elic307imstsirkin
authored andcommitted
vdpa/vdpa_sim_net: Report max device capabilities
Configure max supported virtqueues features on the management device. This info can be retrieved using: $ vdpa mgmtdev show vdpasim_net: supported_classes net max_supported_vqs 2 dev_features MAC ANY_LAYOUT VERSION_1 ACCESS_PLATFORM Signed-off-by: Eli Cohen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
1 parent 47a1401 commit b2ce619

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/vdpa/vdpa_sim/vdpa_sim_net.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ static struct vdpa_mgmt_dev mgmt_dev = {
192192
.config_attr_mask = (1 << VDPA_ATTR_DEV_NET_CFG_MACADDR |
193193
1 << VDPA_ATTR_DEV_NET_CFG_MTU),
194194
.max_supported_vqs = VDPASIM_NET_VQ_NUM,
195+
.supported_features = VDPASIM_NET_FEATURES,
195196
};
196197

197198
static int __init vdpasim_net_init(void)

0 commit comments

Comments
 (0)