vDPA/ifcvf: support userspace to query features and MQ of a management device
authorZhu Lingshan <lingshan.zhu@intel.com>
Fri, 22 Jul 2022 11:53:05 +0000 (19:53 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:26:08 +0000 (04:26 -0400)
commit378b2e956820ff5c082d05f42828badcfbabb614
tree19984ab04a52145192755286c359cfcbe4deb8a6
parent0d6e5e8d1686ce5d055c5ecaa76e5f51609ce9da
vDPA/ifcvf: support userspace to query features and MQ of a management device

Adapting to current netlink interfaces, this commit allows userspace
to query feature bits and MQ capability of a management device.

Currently both the vDPA device and the management device are the VF itself,
thus this ifcvf should initialize the virtio capabilities in probe() before
setting up the struct vdpa_mgmt_dev.

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Message-Id: <20220722115309.82746-3-lingshan.zhu@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/ifcvf/ifcvf_main.c