mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
net: allow NICs to be connected to netdevs
Introduce a 'peer' member to VLANClientState as an alternative to a vlan. The idea being that packets are transfered directly from peer clients rather than going through a vlan. Patchworks-ID: 35516 Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
5869c4d515
commit
283c7c63f5
10 changed files with 45 additions and 20 deletions
|
@ -301,7 +301,7 @@ static int net_init(struct XenDevice *xendev)
|
|||
return -1;
|
||||
|
||||
vlan = qemu_find_vlan(netdev->xendev.dev, 1);
|
||||
netdev->vs = qemu_new_vlan_client(vlan, "xen", NULL,
|
||||
netdev->vs = qemu_new_vlan_client(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