vdpa/vdpa_sim_net: Report max device capabilities
authorEli Cohen <elic@nvidia.com>
Wed, 5 Jan 2022 11:46:46 +0000 (13:46 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 14 Jan 2022 23:50:54 +0000 (18:50 -0500)
commitb2ce6197c9c9be0ecc2a636f3b2f35886ce09a98
tree1013144274c531704ffff2f6aecfca4950f38573
parent47a1401ac95f95936148b813843ee51d516921ea
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 <elic@nvidia.com>
Link: https://lore.kernel.org/r/20220105114646.577224-15-elic@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim_net.c