Hi Christian, Christian Helmuth <[email protected]> wrote on 25/10/2018 15:41:14:
> From: Christian Helmuth <[email protected]> > To: [email protected] > Date: 25/10/2018 15:44 > Subject: Re: multiple devices, single driver > > 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. Thanks for the example - this is very clear. However, its also very hard-coded. Is there a way to support the two-NIC scenario without specifying the PCIe address? For example, if I was using PCIe hot plug, or was just too lazy to reboot several times looking for the bus ID and re-programming the config file? > INVALID URI REMOVED > u=https-3A__github.com_chelmuth_genode_blob_4cb534662b2c52c3de726eedc4466491663523d7_repos_libports_run_twonics.run-23L40-2DL44&d=DwIGaQ&c=jf_iaSHvJObTbx- > siA1ZOg&r=odoeHilLk1wCp9UNyGcJLQ&m=14Y8IwKJpMUWTgOzRcJ8yiuUqw32UVu1edCxGCjA1fc&s=sr4VhiOSFg_l72I_3YICDU6hh4bP0qVmyBNhj6tQTlw&e= > > Regards > -- > Christian Helmuth > Genode Labs > > INVALID URI REMOVED > u=https-3A__www.genode-2Dlabs.com_&d=DwIGaQ&c=jf_iaSHvJObTbx- > siA1ZOg&r=odoeHilLk1wCp9UNyGcJLQ&m=14Y8IwKJpMUWTgOzRcJ8yiuUqw32UVu1edCxGCjA1fc&s=nPqO5RSRIMEoI- > DXLw8qRzqgdj-ONFlSQxIqCKVoGno&e= · INVALID URI REMOVED > u=https-3A__genode.org_&d=DwIGaQ&c=jf_iaSHvJObTbx- > siA1ZOg&r=odoeHilLk1wCp9UNyGcJLQ&m=14Y8IwKJpMUWTgOzRcJ8yiuUqw32UVu1edCxGCjA1fc&s=DyMUWEOGn1D- > WmBsv247oQAQ-g1H2ZIE6Yeiw3qrJew&e= > INVALID URI REMOVED > u=https-3A__twitter.com_GenodeLabs&d=DwIGaQ&c=jf_iaSHvJObTbx- > siA1ZOg&r=odoeHilLk1wCp9UNyGcJLQ&m=14Y8IwKJpMUWTgOzRcJ8yiuUqw32UVu1edCxGCjA1fc&s=BJhQxlY6P8rwH54ow5mKoD5_4tpzX5iXU8pBMbAqJbw&e= > · /?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] > INVALID URI REMOVED > u=https-3A__lists.genode.org_listinfo_users&d=DwIGaQ&c=jf_iaSHvJObTbx- > siA1ZOg&r=odoeHilLk1wCp9UNyGcJLQ&m=14Y8IwKJpMUWTgOzRcJ8yiuUqw32UVu1edCxGCjA1fc&s=hmPN_vKfLWhDpG1ImnNNIeqH3gtwxVJhcCRwFRS_mE0&e= _______________________________________________ Genode users mailing list [email protected] https://lists.genode.org/listinfo/users
