summaryrefslogtreecommitdiffstats
path: root/drivers/vhost/vhost.h
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2017-07-27 11:22:05 +0800
committerDavid S. Miller <davem@davemloft.net>2017-07-29 14:15:56 -0700
commit8d65843c44269c21e95c98090d9bb4848d473853 (patch)
tree2750e3949f94e9c424a97fe8165c50f6c893dcba /drivers/vhost/vhost.h
parent90fecc145e49ba0e910173e8b9fe94a458ef3024 (diff)
downloadop-kernel-dev-8d65843c44269c21e95c98090d9bb4848d473853.zip
op-kernel-dev-8d65843c44269c21e95c98090d9bb4848d473853.tar.gz
Revert "vhost: cache used event for better performance"
This reverts commit 809ecb9bca6a9424ccd392d67e368160f8b76c92. Since it was reported to break vhost_net. We want to cache used event and use it to check for notification. The assumption was that guest won't move the event idx back, but this could happen in fact when 16 bit index wraps around after 64K entries. Signed-off-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/vhost/vhost.h')
-rw-r--r--drivers/vhost/vhost.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/vhost/vhost.h b/drivers/vhost/vhost.h
index f720958..bb7c29b 100644
--- a/drivers/vhost/vhost.h
+++ b/drivers/vhost/vhost.h
@@ -115,9 +115,6 @@ struct vhost_virtqueue {
/* Last index we used. */
u16 last_used_idx;
- /* Last used evet we've seen */
- u16 last_used_event;
-
/* Used flags */
u16 used_flags;
OpenPOWER on IntegriCloud