vhost: fix IOVA access for packed ring
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 6 Nov 2018 06:40:21 +0000 (14:40 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit30affaeebc5655793622370d9d64695d9f785670
tree5d468b2be4d3552945b167ca0d51cbfe5405e8c5
parent823ebfc219f3fa53361afc7ce663f72464bfb3ff
vhost: fix IOVA access for packed ring

We should apply for RO access when receiving packets from the
VM and apply for RW access when sending packets to the VM.

Fixes: a922401f35cc ("vhost: add Rx support for packed ring")
Fixes: ae999ce49dcb ("vhost: add Tx support for packed ring")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c