mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
net: Drop vlan argument to qemu_new_net_client()
Since hubs are now used to implement the 'vlan' feature and the vlan argument is always NULL, remove the argument entirely and update all net clients that use qemu_new_net_client(). Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
81017645e4
commit
ab5f3f84c4
9 changed files with 18 additions and 26 deletions
|
@ -287,7 +287,7 @@ static NetSocketState *net_socket_fd_init_dgram(VLANClientState *peer,
|
|||
}
|
||||
}
|
||||
|
||||
nc = qemu_new_net_client(&net_dgram_socket_info, NULL, peer, model, name);
|
||||
nc = qemu_new_net_client(&net_dgram_socket_info, peer, model, name);
|
||||
|
||||
snprintf(nc->info_str, sizeof(nc->info_str),
|
||||
"socket: fd=%d (%s mcast=%s:%d)",
|
||||
|
@ -331,7 +331,7 @@ static NetSocketState *net_socket_fd_init_stream(VLANClientState *peer,
|
|||
VLANClientState *nc;
|
||||
NetSocketState *s;
|
||||
|
||||
nc = qemu_new_net_client(&net_socket_info, NULL, peer, model, name);
|
||||
nc = qemu_new_net_client(&net_socket_info, peer, model, name);
|
||||
|
||||
snprintf(nc->info_str, sizeof(nc->info_str), "socket: fd=%d", fd);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue