mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
Fix net_check_clients warnings: make it per vlan.
Signed-off-by: Tristan Gingold <gingold@adacore.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
parent
ee7495d3a9
commit
ac60cc1871
1 changed files with 2 additions and 1 deletions
3
net.c
3
net.c
|
@ -1305,9 +1305,10 @@ void net_check_clients(void)
|
|||
{
|
||||
VLANState *vlan;
|
||||
VLANClientState *vc;
|
||||
int has_nic = 0, has_host_dev = 0;
|
||||
|
||||
QTAILQ_FOREACH(vlan, &vlans, next) {
|
||||
int has_nic = 0, has_host_dev = 0;
|
||||
|
||||
QTAILQ_FOREACH(vc, &vlan->clients, next) {
|
||||
switch (vc->info->type) {
|
||||
case NET_CLIENT_TYPE_NIC:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue