net/virtio: fix queue notify
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 11 Apr 2017 10:44:28 +0000 (03:44 -0700)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 19 Apr 2017 08:49:06 +0000 (10:49 +0200)
commit518208f3a1d370dc0873bf08d407a9aa9add4aec
tree521f63ea1882baea3405f7f6770d819ba108e0a2
parent2dfbbd925d40ee83e2a6073560d2435aec9e4033
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: 6ba1f63b5ab0 ("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>
drivers/net/virtio/virtio_pci.c