Re: CVS commit: src/sys/net

2014-11-27 Thread Masao Uebayashi
I predict that in the near future the network stack will act like a
"batch" manner; instead of moving layers for a single packet, pass a
batch of packets to the next layer; each layer processes a batch of
packets in a loop and stay longer (than now) holding a relevant
context object cached.  In such a model the relative cost of
indirection will become nothing.


Re: CVS commit: src/sys/net

2014-11-27 Thread Matt Thomas

> On Nov 26, 2014, at 11:26 PM, Masao Uebayashi  wrote:
> 
> On Thu, Nov 27, 2014 at 4:20 PM, Matt Thomas  wrote:
>>> Or completely hide sizeof(struct ifnet) by forcing use of if_alloc(),
>>> as struct device did.
>> 
>> Doesn't work since struct ifnet is embedded in ethercom/fddicom
> 
> Right.  I mean, I want to make them alloc'ed to improve modlarity in
> the long run.

Eww.  Yet more indirection.  Most ifnet's live in a ethercom which
lives in a softc allocated by autoconf.