mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07: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
|
|
@ -129,7 +129,7 @@ static NetHubPort *net_hub_port_new(NetHub *hub, const char *name)
|
|||
name = default_name;
|
||||
}
|
||||
|
||||
nc = qemu_new_net_client(&net_hub_port_info, NULL, NULL, "hub", name);
|
||||
nc = qemu_new_net_client(&net_hub_port_info, NULL, "hub", name);
|
||||
port = DO_UPCAST(NetHubPort, nc, nc);
|
||||
port->id = id;
|
||||
port->hub = hub;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue