diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-10-22 17:43:42 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:29:01 -0500 |
commit | 70783b9c9be31e98421f17327a1127021abae672 (patch) | |
tree | 39b7f53aa54d90bea4cf0e7ecf313c57ffc74e19 /hw/xen_nic.c | |
parent | ca77d175912f7d0b2296e8e3a803a0763c00bc0b (diff) | |
download | qemu-70783b9c9be31e98421f17327a1127021abae672.zip qemu-70783b9c9be31e98421f17327a1127021abae672.tar.gz qemu-70783b9c9be31e98421f17327a1127021abae672.tar.bz2 |
net: add receive_raw parameter to qemu_new_vlan_client()
Trivial patch to allow supplying a receive_raw function.
A future cleanup should combine this function pointer parameters into a
table.
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xen_nic.c b/hw/xen_nic.c index 2a179f0..75599d6 100644 --- a/hw/xen_nic.c +++ b/hw/xen_nic.c @@ -303,7 +303,7 @@ static int net_init(struct XenDevice *xendev) vlan = qemu_find_vlan(netdev->xendev.dev, 1); netdev->vs = qemu_new_vlan_client(NET_CLIENT_TYPE_NIC, vlan, NULL, "xen", NULL, - net_rx_ok, net_rx_packet, NULL, + net_rx_ok, net_rx_packet, NULL, NULL, NULL, netdev); snprintf(netdev->vs->info_str, sizeof(netdev->vs->info_str), "nic: xenbus vif macaddr=%s", netdev->mac); |