summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/vhost-user.h
diff options
context:
space:
mode:
authorSteven <sluong@cisco.com>2017-06-01 12:49:23 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2017-06-02 09:12:20 +0000
commit388e51aaae5a845524410a8acdf1c0cbb4a13897 (patch)
treea6c2dcc6f47cf2a7075569cbdbc7e14e0739670f /src/vnet/devices/virtio/vhost-user.h
parentccd4a6588c6f486f7616286b054a5ac123f5c502 (diff)
vhost: add debug vhost-user on | off CLI
Add runtime debug vhost-user on | off CLI to facilitate troubleshooting. This feature is needed to avoid recompiling the code to debug vhost issues. The debugging messages should not be on the data path to avoid performance hit. Change-Id: I4c40f65dbb222557cba3fb8706fa3b7b62eec95f Signed-off-by: Steven <sluong@cisco.com>
Diffstat (limited to 'src/vnet/devices/virtio/vhost-user.h')
-rw-r--r--src/vnet/devices/virtio/vhost-user.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/devices/virtio/vhost-user.h b/src/vnet/devices/virtio/vhost-user.h
index ceced342c92..ed147a470d2 100644
--- a/src/vnet/devices/virtio/vhost-user.h
+++ b/src/vnet/devices/virtio/vhost-user.h
@@ -310,6 +310,9 @@ typedef struct
/* The number of rx interface/queue pairs in interrupt mode */
u32 ifq_count;
+
+ /* debug on or off */
+ u8 debug;
} vhost_user_main_t;
typedef struct