>Can we use netdev struct to replace the index? Because the net device
>may have different parameters, not merely index.

We have a solo5_net_info structure, which has mtu and mac address at the moment 
and would likely need to grow at least to cover index.  The solo5_net_info call 
would also need to be updated to return info on the particular device (although 
perhaps we should think about having some of that in the start_info).

>>> The only risk is breaking the solo5 interface currently used by
>>> mirage and includeos.

Are there examples of MirageOS unikernels that use two NICs on Xen or Unix?  
That might be a starting point for understanding how the upper layers use 
multiple devices.  It sounds like there are already lots of examples of 
IncludeOS using multiple NICs, maybe a pointer to some of the relevant code 
will be helpful.

Thanks,
Dan


Reply via email to