Hi, On Thu, Oct 25, 2018 at 02:16:35PM +0200, Alexander Boettcher wrote: > Actually, in this case, I would not encourage to implement it in one > driver. The network cards are independent (as opposed for devices on a > ahci controller) from each other, so just start/instantiate the driver > two times. With that you cleanly isolate the network data. > > For that to work, you have to configure the platform driver (the guard > to the PCIe bus on Genode) [0] to hand out the first driver one network > card (described as PCI bus device function) and for the second driver > the other network card (described by another PCI bus device function).
I actually did such a two-NICs scenario a while ago. https://github.com/chelmuth/genode/blob/4cb534662b2c52c3de726eedc4466491663523d7/repos/libports/run/twonics.run#L40-L44 Regards -- Christian Helmuth Genode Labs https://www.genode-labs.com/ · https://genode.org/ https://twitter.com/GenodeLabs · /ˈdʒiː.nəʊd/ Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth _______________________________________________ Genode users mailing list [email protected] https://lists.genode.org/listinfo/users
