]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit06821849b52cbff6779cdfdb274fa13c46f1f435
tree19984ab04a52145192755286c359cfcbe4deb8a6
parent2fb4b9c1624ada54c3330cb9ec05554ea4b68995
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