From 388e51aaae5a845524410a8acdf1c0cbb4a13897 Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 1 Jun 2017 12:49:23 -0700 Subject: 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 --- src/vnet/devices/virtio/vhost-user.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vnet/devices/virtio/vhost-user.h') 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 -- cgit 1.2.3-korg