]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET] drivers/net: statistics cleanup #1 -- save memory and shrink code
authorJeff Garzik <jeff@garzik.org>
Thu, 4 Oct 2007 00:41:50 +0000 (17:41 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:51:16 +0000 (16:51 -0700)
commit09f75cd7bf13720738e6a196cc0107ce9a5bd5a0
tree4c85b0b395abe7f88c87162fc22570e5de255cb1
parentff8ac60948ba819b89e9c87083e8050fc2f89999
[NET] drivers/net: statistics cleanup #1 -- save memory and shrink code

We now have struct net_device_stats embedded in struct net_device,
and the default ->get_stats() hook does the obvious thing for us.

Run through drivers/net/* and remove the driver-local storage of
statistics, and driver-local ->get_stats() hook where applicable.

This was just the low-hanging fruit in drivers/net; plenty more drivers
remain to be updated.

[ Resolved conflicts with napi_struct changes and fix sunqe build
  regression... -DaveM ]

Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
83 files changed:
drivers/net/3c501.c
drivers/net/3c501.h
drivers/net/3c507.c
drivers/net/7990.c
drivers/net/7990.h
drivers/net/82596.c
drivers/net/a2065.c
drivers/net/at1700.c
drivers/net/atarilance.c
drivers/net/atp.c
drivers/net/au1000_eth.c
drivers/net/au1000_eth.h
drivers/net/bfin_mac.c
drivers/net/bfin_mac.h
drivers/net/bmac.c
drivers/net/de600.c
drivers/net/de600.h
drivers/net/de620.c
drivers/net/declance.c
drivers/net/depca.c
drivers/net/dgrs.c
drivers/net/dm9000.c
drivers/net/e100.c
drivers/net/eepro.c
drivers/net/eexpress.c
drivers/net/eql.c
drivers/net/eth16i.c
drivers/net/ewrk3.c
drivers/net/fec.c
drivers/net/gianfar.c
drivers/net/hplance.c
drivers/net/ibmlana.c
drivers/net/ibmlana.h
drivers/net/ibmveth.c
drivers/net/ifb.c
drivers/net/iseries_veth.c
drivers/net/lib82596.c
drivers/net/lp486e.c
drivers/net/mace.c
drivers/net/macmace.c
drivers/net/meth.c
drivers/net/mipsnet.c
drivers/net/mv643xx_eth.c
drivers/net/myri_sbus.c
drivers/net/myri_sbus.h
drivers/net/netx-eth.c
drivers/net/ni5010.c
drivers/net/pasemi_mac.c
drivers/net/pasemi_mac.h
drivers/net/pci-skeleton.c
drivers/net/plip.c
drivers/net/qla3xxx.c
drivers/net/qla3xxx.h
drivers/net/rionet.c
drivers/net/rrunner.c
drivers/net/rrunner.h
drivers/net/saa9730.c
drivers/net/saa9730.h
drivers/net/sb1000.c
drivers/net/sb1250-mac.c
drivers/net/seeq8005.c
drivers/net/sgiseeq.c
drivers/net/shaper.c
drivers/net/sis190.c
drivers/net/sis900.c
drivers/net/smc911x.c
drivers/net/smc9194.c
drivers/net/smc91x.c
drivers/net/spider_net.c
drivers/net/spider_net.h
drivers/net/sun3lance.c
drivers/net/sunlance.c
drivers/net/sunqe.c
drivers/net/sunqe.h
drivers/net/tun.c
drivers/net/ucc_geth.c
drivers/net/ucc_geth.h
drivers/net/xen-netfront.c
drivers/net/yellowfin.c
drivers/net/znet.c
include/linux/if_eql.h
include/linux/if_shaper.h
include/linux/if_tun.h