vDPA/ifcvf: deduce VIRTIO device ID from pdev ids
authorZhu Lingshan <lingshan.zhu@intel.com>
Wed, 17 Mar 2021 09:49:33 +0000 (17:49 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 May 2021 08:55:52 +0000 (04:55 -0400)
commite8ef6124959a7c4004ef95b1b17cfa9b2ca582bd
treed035d1891048ad15b1fdd37388bb850a7e360b80
parent1d895a68085b28d098893570b024229aacc9a057
vDPA/ifcvf: deduce VIRTIO device ID from pdev ids

This commit deduces the VIRTIO device ID of a probed
device from its pdev device ids.

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Link: https://lore.kernel.org/r/20210317094933.16417-8-lingshan.zhu@intel.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vdpa/ifcvf/ifcvf_base.h
drivers/vdpa/ifcvf/ifcvf_main.c