tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: struct ifnet and ifaddr handling [was: Re: Making global variables of if.c MPSAFE]



On Wed, Nov 19, 2014 at 11:24 AM, Ryota Ozaki <ozaki-r%netbsd.org@localhost> wrote:
> Weird :-/

I don't think so.  For fast paths to access data really fast, slow
paths take a little way around (pre-allocation, etc).  This is a fair
trade-off.  If you can achieve such a goal (e.g. lockless access of
list) without restructuring, that's really weird. :)

In this case, another approach is to allocate callout per-interface?
Should be considered and compared with alternatives.


Home | Main Index | Thread Index | Old Index