mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
baf74c9580
commit
bb6e636443
9 changed files with 40 additions and 14 deletions
|
@ -263,7 +263,8 @@ void mipsnet_init (int base, qemu_irq irq, NICInfo *nd)
|
|||
s->io_base = base;
|
||||
s->irq = irq;
|
||||
if (nd) {
|
||||
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,
|
||||
mipsnet_can_receive, mipsnet_receive,
|
||||
NULL, mipsnet_cleanup, s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue