summaryrefslogtreecommitdiffstats
path: root/include/net/net.h
diff options
context:
space:
mode:
authorMarc-André Lureau2016-06-06 18:45:06 +0200
committerMichael S. Tsirkin2016-06-17 02:28:03 +0200
commitbfc6cf31ce12649b32dae0430fcbdb456fe6faf8 (patch)
tree813fa0191e598c7acd134fac9095c486d5454e5e /include/net/net.h
parentvhost-net: save & restore vhost-user acked features (diff)
downloadqemu-bfc6cf31ce12649b32dae0430fcbdb456fe6faf8.tar.gz
qemu-bfc6cf31ce12649b32dae0430fcbdb456fe6faf8.tar.xz
qemu-bfc6cf31ce12649b32dae0430fcbdb456fe6faf8.zip
vhost-net: save & restore vring enable state
A driver may change the vring enable state at run time but vhost-user backend may not be present (a contrived example is when the backend is disconnected and the device is reconfigured after driver rebinding) Restore the vring state when the vhost-user backend is started, so it can process the ring. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Tested-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Victor Kaplansky <victork@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/net/net.h')
-rw-r--r--include/net/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/net.h b/include/net/net.h
index a69e382ba7..a5c5095154 100644
--- a/include/net/net.h
+++ b/include/net/net.h
@@ -99,6 +99,7 @@ struct NetClientState {
NetClientDestructor *destructor;
unsigned int queue_index;
unsigned rxfilter_notify_enabled:1;
+ int vring_enable;
QTAILQ_HEAD(NetFilterHead, NetFilterState) filters;
};