mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
Revert "qapi: net: Add query-netdev command"
Several issues has been reported for query-netdev series. Consider
it's late in the rc, this reverts commit
d32ad10a14
.
Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
22317309df
commit
f9bb0c1f98
12 changed files with 9 additions and 477 deletions
22
net/vde.c
22
net/vde.c
|
@ -84,7 +84,6 @@ static int net_vde_init(NetClientState *peer, const char *model,
|
|||
VDECONN *vde;
|
||||
char *init_group = (char *)group;
|
||||
char *init_sock = (char *)sock;
|
||||
NetdevVdeOptions *stored;
|
||||
|
||||
struct vde_open_args args = {
|
||||
.port = port,
|
||||
|
@ -109,27 +108,6 @@ static int net_vde_init(NetClientState *peer, const char *model,
|
|||
|
||||
qemu_set_fd_handler(vde_datafd(s->vde), vde_to_qemu, NULL, s);
|
||||
|
||||
/* Store startup parameters */
|
||||
nc->stored_config = g_new0(NetdevInfo, 1);
|
||||
nc->stored_config->type = NET_BACKEND_VDE;
|
||||
stored = &nc->stored_config->u.vde;
|
||||
|
||||
if (sock) {
|
||||
stored->has_sock = true;
|
||||
stored->sock = g_strdup(sock);
|
||||
}
|
||||
|
||||
stored->has_port = true;
|
||||
stored->port = port;
|
||||
|
||||
if (group) {
|
||||
stored->has_group = true;
|
||||
stored->group = g_strdup(group);
|
||||
}
|
||||
|
||||
stored->has_mode = true;
|
||||
stored->mode = mode;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue