mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -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
|
@ -778,7 +778,6 @@ static int tap_win32_init(NetClientState *peer, const char *model,
|
|||
NetClientState *nc;
|
||||
TAPState *s;
|
||||
tap_win32_overlapped_t *handle;
|
||||
NetdevTapOptions *stored;
|
||||
|
||||
if (tap_win32_open(&handle, ifname) < 0) {
|
||||
printf("tap: Could not open '%s'\n", ifname);
|
||||
|
@ -789,14 +788,6 @@ static int tap_win32_init(NetClientState *peer, const char *model,
|
|||
|
||||
s = DO_UPCAST(TAPState, nc, nc);
|
||||
|
||||
/* Store startup parameters */
|
||||
nc->stored_config = g_new0(NetdevInfo, 1);
|
||||
nc->stored_config->type = NET_BACKEND_TAP;
|
||||
stored = &nc->stored_config->u.tap;
|
||||
|
||||
stored->has_ifname = true;
|
||||
stored->ifname = g_strdup(ifname);
|
||||
|
||||
snprintf(s->nc.info_str, sizeof(s->nc.info_str),
|
||||
"tap: ifname=%s", ifname);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue