Skip to content
Commit db5db1a0 authored by Angus Chen's avatar Angus Chen Committed by Michael S. Tsirkin
Browse files

vdpa/ifcvf: fix the calculation of queuepair



The q_pair_id to address a queue pair in the lm bar should be
calculated by queue_id / 2 rather than queue_id / nr_vring.

Fixes: 2ddae773 ("vDPA/ifcvf: detect and use the onboard number of queues directly")
Signed-off-by: default avatarAngus Chen <angus.chen@jaguarmicro.com>
Reviewed-by: default avatarJason Wang <jasowang@redhat.com>
Reviewed-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarZhu Lingshan <lingshan.zhu@intel.com>
Message-Id: <20220923091013.191-1-angus.chen@jaguarmicro.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent f76349cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment