net/virtio: fix queue notify
According to spec, we should write virtqueue index into the notify
address, rather than 1. Besides, some HW backend may rely on the data
written to identify which queue need to serve.
Fixes: 6ba1f63b5a
("virtio: support specification 1.0")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Reviewed-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
This commit is contained in:
parent
2dfbbd925d
commit
518208f3a1
@ -504,7 +504,7 @@ modern_del_queue(struct virtio_hw *hw, struct virtqueue *vq)
|
||||
static void
|
||||
modern_notify_queue(struct virtio_hw *hw __rte_unused, struct virtqueue *vq)
|
||||
{
|
||||
rte_write16(1, vq->notify_addr);
|
||||
rte_write16(vq->vq_queue_index, vq->notify_addr);
|
||||
}
|
||||
|
||||
const struct virtio_pci_ops modern_ops = {
|
||||
|
Loading…
Reference in New Issue
Block a user