vhost: fix notification for packed ring
authorTiwei Bie <tiwei.bie@intel.com>
Thu, 11 Oct 2018 14:22:34 +0000 (22:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 18 Oct 2018 08:24:39 +0000 (10:24 +0200)
commitcd9012c3f8d3905a8212da7945233a17633e796f
tree48638a2f6a19f2f1326e2ed7c46a3aa38829a6ef
parent7604677883d50c4f2b1970e2a877706947bf192b
vhost: fix notification for packed ring

The notification can't be disabled in packed ring when
application tries to disable notification, because the
device event flags field is overwritten by an unexpected
value. This patch fixes this issue.

Fixes: b1cce26af1dc ("vhost: add notification for packed ring")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
lib/librte_vhost/vhost.c