summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:31 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:50 -0500
commit1a609520277c65a2b00bbbcca360f482e257d64d (patch)
treedd6a0cfc734009808ff41608b9be6026a0f1b468 /hw
parent28432466f3a80e4d267754f426436c92c58921b5 (diff)
downloadqemu-1a609520277c65a2b00bbbcca360f482e257d64d.tar.gz
qemu-1a609520277c65a2b00bbbcca360f482e257d64d.tar.bz2
qemu-1a609520277c65a2b00bbbcca360f482e257d64d.zip
net: Provide VLAN client lookup helper
Introduce qemu_find_vlan_client_by_name for VLANClientState lookup based on VLAN ID and client name. This is useful for monitor commands. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/xen_nic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xen_nic.c b/hw/xen_nic.c
index e4f71f7f63..4377ed15d6 100644
--- a/hw/xen_nic.c
+++ b/hw/xen_nic.c
@@ -301,7 +301,7 @@ static int net_init(struct XenDevice *xendev)
if (netdev->mac == NULL)
return -1;
- vlan = qemu_find_vlan(netdev->xendev.dev);
+ vlan = qemu_find_vlan(netdev->xendev.dev, 1);
netdev->vs = qemu_new_vlan_client(vlan, "xen", NULL,
net_rx_ok, net_rx_packet, NULL,
NULL, netdev);