OSDN Git Service

vDPA/ifcvf: detect and use the onboard number of queues directly
authorZhu Lingshan <lingshan.zhu@intel.com>
Wed, 18 Aug 2021 09:57:13 +0000 (17:57 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 5 Sep 2021 20:23:07 +0000 (16:23 -0400)
commit2ddae773c93bbcb0678ae819551f1750a505edec
tree107d8cb8ca233fc048ef2407d1ee87f7e26ded0c
parent6b5df347c6482f57b0d8f0569b86fb8fcd90d168
vDPA/ifcvf: detect and use the onboard number of queues directly

To enable this multi-queue feature for ifcvf, this commit
intends to detect and use the onboard number of queues
directly than IFCVF_MAX_QUEUE_PAIRS = 1 (removed)

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Link: https://lore.kernel.org/r/20210818095714.3220-2-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.c
drivers/vdpa/ifcvf/ifcvf_base.h
drivers/vdpa/ifcvf/ifcvf_main.c