mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 22:18:23 +00: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:
committed by
Anthony Liguori
parent
baf74c9580
commit
bb6e636443
@@ -1460,7 +1460,8 @@ USBDevice *usb_net_init(NICInfo *nd)
|
||||
|
||||
memcpy(s->mac, nd->macaddr, 6);
|
||||
|
||||
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,
|
||||
usbnet_can_receive,
|
||||
usbnet_receive,
|
||||
|
||||
Reference in New Issue
Block a user