Sebastian Herbszt wrote:
Actually you have to else networking doesn't work at all. Without
specifying
"vlan" with the "-device" syntax you end up with vlan=<null> and not
vlan=0
with "info qtree".
-netdev type=tap,id=mynic -device ne2k_isa,irq=5,iobase=0x280,id=mynic
One of the changes in 0.12 allows for a network configuration that does
not have the builtin hub (aka vlans). This is really important for a
number of reasons. The main is that it allows for much more aggressive
optimization without having to teach the vlan code how to deal with
things like software GSO.
That might look awkward, but that's because it's designed to be used
from a config file. The config entry for that is:
[device "mynic"]
driver = "ne2k_isa"
irq = "5"
iobase = "0x280"
[netdev "mynic"]
type = "tap"
Which looks pretty nice IMHO.
Regards,
Anthony Liguori