diff options
author | Mark McLoughlin | 2009-10-08 20:58:30 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-10-15 16:32:02 +0200 |
commit | 283c7c63f5c56c4d0340fb39093fb47e75cb122e (patch) | |
tree | c07299f36322356dac05fb41d3059e614e0073a2 /hw/usb-net.c | |
parent | net: add -net nic,netdev= option (diff) | |
download | qemu-283c7c63f5c56c4d0340fb39093fb47e75cb122e.tar.gz qemu-283c7c63f5c56c4d0340fb39093fb47e75cb122e.tar.xz qemu-283c7c63f5c56c4d0340fb39093fb47e75cb122e.zip |
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>
Diffstat (limited to 'hw/usb-net.c')
-rw-r--r-- | hw/usb-net.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/usb-net.c b/hw/usb-net.c index b33e32927c..5c753e0872 100644 --- a/hw/usb-net.c +++ b/hw/usb-net.c @@ -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->model, nd->name, + s->vc = nd->vc = qemu_new_vlan_client(nd->vlan, nd->netdev, + nd->model, nd->name, usbnet_can_receive, usbnet_receive, NULL, |