提交 d39c87d7 编写于 作者: W Wen Congyang 提交者: Michael S. Tsirkin

vhost-user: set link down when the char device is closed

Signed-off-by: NWen Congyang <wency@cn.fujitsu.com>
Reviewed-by: NMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: NYuanhan Liu <yuanhan.liu@linux.intel.com>
上级 463b52f2
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册