linux-stable/drivers/vdpa
Angus Chen a0e3719e03 vdpa/ifcvf: fix the calculation of queuepair
[ Upstream commit db5db1a00d ]

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: 2ddae773c9 ("vDPA/ifcvf: detect and use the onboard number of queues directly")
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Zhu Lingshan <lingshan.zhu@intel.com>
Message-Id: <20220923091013.191-1-angus.chen@jaguarmicro.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-05 10:39:43 +02:00
..
ifcvf vdpa/ifcvf: fix the calculation of queuepair 2022-10-05 10:39:43 +02:00
mlx5 vdpa/mlx5: Initialize CVQ vringh only once 2022-07-21 21:24:33 +02:00
vdpa_sim vdpasim: allow to enable a vq repeatedly 2022-06-09 10:23:30 +02:00
vdpa_user vduse: prevent uninitialized memory accesses 2022-10-05 10:39:38 +02:00
virtio_pci vdpa: fix use-after-free on vp_vdpa_remove 2022-03-16 14:23:36 +01:00
Kconfig
Makefile
vdpa.c vdpa: Fix error logic in vdpa_nl_cmd_dev_get_doit 2022-06-14 18:36:12 +02:00