diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-10-22 17:43:38 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:29:00 -0500 |
commit | bb6e636443d49f7444f49ab64dc7ec6aae1493a7 (patch) | |
tree | 67f2e6436aec330d4ebbd3430e3c0dd9ad84f0f8 /hw/mcf_fec.c | |
parent | baf74c95802347e218721dbaa331997e11fbf903 (diff) | |
download | qemu-bb6e636443d49f7444f49ab64dc7ec6aae1493a7.zip qemu-bb6e636443d49f7444f49ab64dc7ec6aae1493a7.tar.gz qemu-bb6e636443d49f7444f49ab64dc7ec6aae1493a7.tar.bz2 |
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/mcf_fec.c')
-rw-r--r-- | hw/mcf_fec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/mcf_fec.c b/hw/mcf_fec.c index f9f437a..0567bcd 100644 --- a/hw/mcf_fec.c +++ b/hw/mcf_fec.c @@ -462,7 +462,8 @@ void mcf_fec_init(NICInfo *nd, target_phys_addr_t base, qemu_irq *irq) mcf_fec_writefn, s); cpu_register_physical_memory(base, 0x400, s->mmio_index); - s->vc = nd->vc = qemu_new_vlan_client(nd->vlan, nd->netdev, + s->vc = nd->vc = qemu_new_vlan_client(NET_CLIENT_TYPE_NIC, + nd->vlan, nd->netdev, nd->model, nd->name, mcf_fec_can_receive, mcf_fec_receive, NULL, mcf_fec_cleanup, s); |