OSDN Git Service

vDPA/ifcvf: fetch device feature bits when probe
authorZhu Lingshan <lingshan.zhu@intel.com>
Wed, 17 Mar 2021 09:49:31 +0000 (17:49 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 May 2021 08:55:52 +0000 (04:55 -0400)
commit69d00d9858c7451a1e3fc556ece211533fb85b64
tree53cec34bc9a865124207384b29cc09be6efbb873
parent2f1b305070393151d3997217a4452ef99bdb48cc
vDPA/ifcvf: fetch device feature bits when probe

This commit would read and store device feature
bits when probe.

rename ifcvf_get_features() to ifcvf_get_hw_features(),
it reads and stores features of the probed device.

new ifcvf_get_features() simply returns stored
feature bits.

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