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/4cb534662b2c52c3de726eedc44664916635...
Regards