On Fri, Jul 20, 2018 at 10:19 AM, Aaron LI <[email protected]> wrote: > On Fri, 20 Jul 2018 09:40:21 +0800 > Sepherosa Ziehau <[email protected]> wrote: > >> Most of the physical drivers are ethernet ones, so they need arpcom; >> please do w/ care. > > Sure, I have to understand the drivers more before really touching them. > >> I am not quite sure why we want to use if_alloc() in the first place? > > Since our if_alloc() is very simple, so there is no big benefit to use it > over the direct kmalloc(). But if_alloc() is easier to use and more > intuitive.
I mean why allocate in the first place? What's wrong w/ embedding? > >> We don't have the synchronization issue if_alloc() tries to address >> in FreeBSD. > > Cool! > > > Cheers, > -- > Aaron -- Tomorrow Will Never Die
