mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -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
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue