netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] netdevice ops
@ 2007-05-18  4:07 Stephen Hemminger
  2007-05-18  4:23 ` Ben Greear
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Stephen Hemminger @ 2007-05-18  4:07 UTC (permalink / raw)
  To: David Miller, Jeff Garzik; +Cc: netdev

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.

Rough plan:
1. Introduce inline accessors so protocols don't dereference dev->XXX directly.
2. Fix protocols to use #1
3. Add ops field to net_device, and netdevice_register will fill in old values
   in 'struct net_device'.
4...1300 Fix all network devices to use ops field
1301 Change accessors to use ops, get rid of old 'struct net_device' function pointers.

It isn't rocket science just another code exercise. I'll patch bomb it into something
like 2.6.23-mm first.

This should really help the people who like to do 1000's of vlans etc.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-05-19 13:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18  4:07 [RFC] netdevice ops Stephen Hemminger
2007-05-18  4:23 ` Ben Greear
2007-05-18  4:49   ` David Miller
2007-05-18  6:42     ` Ben Greear
2007-05-18  4:50 ` David Miller
2007-05-18  4:54 ` Jeff Garzik
2007-05-18  5:05   ` David Miller
2007-05-18  5:58     ` Stephen Hemminger
2007-05-19 14:18       ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).