summary refs log tree commit diff stats
path: root/hw/xen_nic.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-22 17:43:38 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:29:00 -0500
commitbb6e636443d49f7444f49ab64dc7ec6aae1493a7 (patch)
tree67f2e6436aec330d4ebbd3430e3c0dd9ad84f0f8 /hw/xen_nic.c
parentbaf74c95802347e218721dbaa331997e11fbf903 (diff)
downloadfocaccia-qemu-bb6e636443d49f7444f49ab64dc7ec6aae1493a7.tar.gz
focaccia-qemu-bb6e636443d49f7444f49ab64dc7ec6aae1493a7.zip
net: add a client type code
This is so as to allow APIs which operate on specific client types
without having to add a function table entry which is only implemented
by a single client type.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/xen_nic.c')
-rw-r--r--hw/xen_nic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xen_nic.c b/hw/xen_nic.c
index b09b48a22f..2a179f0893 100644
--- a/hw/xen_nic.c
+++ b/hw/xen_nic.c
@@ -301,7 +301,8 @@ static int net_init(struct XenDevice *xendev)
 	return -1;
 
     vlan = qemu_find_vlan(netdev->xendev.dev, 1);
-    netdev->vs = qemu_new_vlan_client(vlan, NULL, "xen", NULL,
+    netdev->vs = qemu_new_vlan_client(NET_CLIENT_TYPE_NIC,
+                                      vlan, NULL, "xen", NULL,
                                       net_rx_ok, net_rx_packet, NULL,
                                       NULL, netdev);
     snprintf(netdev->vs->info_str, sizeof(netdev->vs->info_str),