Support for multiple network cards

"Sebastian Herbszt" <[email protected]> Tue, 30 Apr 2013 15:56:32 +0200
Newsgroups gmane.comp.emulators.bochs.devel
Message-ID <C958C81E8744481E8ACA3681596B847E@FSCPC>
I am wondering what needs to be implemented to get support for multiple network cards working.
I noticed the sf tracker got two patches:
#221 - up to 4 Network-Interface-Cards for Bochs instead of only 1
#437 - 2 network cards

To add a ne2k pci card we currently need a "ne2k" config line and a pci slot assignment:
ne2k: mac=...
pci: enabled=1, chipset=i440fx, slot1=ne2k

Maybe a new config line like "nic" should be introduced like
nic: model=ne2k, index=0, mac=...
to unite the different ne2k, e1000, pcipnic lines.
A possible alternative is
nic0: model=ne2k, mac=...
or
nic.0: model=ne2k, mac=...

The pci code can then distinguish between ne2k in slot1 and slot2 with something like
pci: enabled=1, chipset=i440fx, slot1=nic0, slot2=nic1

Sebastian


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1