From d39c87d70763f2755d1d7a719817b06f0281fb01 Mon Sep 17 00:00:00 2001 From: Wen Congyang Date: Wed, 11 Nov 2015 14:53:29 +0800 Subject: vhost-user: set link down when the char device is closed Signed-off-by: Wen Congyang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Yuanhan Liu --- net/vhost-user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/vhost-user.c b/net/vhost-user.c index 0ebd7df..5071602 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -188,7 +188,7 @@ static void net_vhost_user_event(void *opaque, int event) qmp_set_link(name, true, &err); break; case CHR_EVENT_CLOSED: - qmp_set_link(name, true, &err); + qmp_set_link(name, false, &err); vhost_user_stop(queues, ncs); break; } -- cgit v1.1