Subject: Re: [RFC] netdevice ops

From: Stephen Hemminger <[email-masked]>
Date: Thu, 17 May 2007 22:58:33 -0700

On Thu, 17 May 2007 22:05:29 -0700 (PDT)
David Miller <[email-masked]> wrote:

> From: Jeff Garzik <[email-masked]>
> Date: Fri, 18 May 2007 00:54:13 -0400
> 
> > Stephen Hemminger wrote:
> > > I want to take all the function pointers of 'struct net_device' and
> > > move them to 'struct net_device_ops'. This will save memory for the
> > > case of lots of devices, as well as reduce initialization code.
> > 
> > It will also add an additional deref to every operation, right?
> 
> Yes, it's certainly going to.  How much do we think that actually
> matters?

I would think a non-conditional deref would be easily pipelined.
If the net_device struct was more cache dense, it probably would
even out.