提交 8b077c9f 编写于 作者: M Mark McLoughlin 提交者: Anthony Liguori

net: pass monitor handle to client init functions

Needed for e.g. looking up a file descriptor name using
monitor_get_fd() in net_init_tap()

Patchworks-ID: 35509
Signed-off-by: NMark McLoughlin <markmc@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 98449371
......@@ -3021,7 +3021,7 @@ int net_client_init(Monitor *mon, QemuOpts *opts)
}
if (net_client_types[i].init) {
return net_client_types[i].init(opts, NULL);
return net_client_types[i].init(opts, mon);
} else {
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册