linux-stable-rt/arch
Rusty Russell c45d286e72 [NET]: Inline net_device_stats
Network drivers which keep stats allocate their own stats structure
then write a get_stats() function to return them.  It would be nice if
this were done by default.

1) Add a new "stats" field to "struct net_device".
2) Add a new feature field to say "this driver uses the internal one"
3) Have a default "get_stats" which returns NULL if that feature not set.
4) Change callers to check result of get_stats call for NULL, not if
   ->get_stats is set.

This should not break backwards compatibility with older drivers, yet
allow modern drivers to shed some boilerplate code.

Lightly tested: works for a modified lguest network driver.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:28:26 -07:00
..
alpha alpha: build fixes - force architecture 2007-04-17 16:36:27 -07:00
arm [ARM] 4313/1: S3C24XX: Update s3c2410 defconfig to 2.6.21-rc6 2007-04-16 21:03:00 +01:00
arm26
avr32
cris [PATCH] MSI-X: fix resume crash 2007-03-28 13:59:37 -07:00
frv [PATCH] MSI-X: fix resume crash 2007-03-28 13:59:37 -07:00
h8300
i386 [PATCH] i386: Fix some warnings added by earlier patch 2007-04-24 13:05:37 +02:00
ia64 [SK_BUFF]: Introduce skb_copy_from_linear_data{_offset} 2007-04-25 22:28:23 -07:00
m32r
m68k
m68knommu
mips [MIPS] Fix oprofile logic to physical counter remapping 2007-04-24 22:10:18 +01:00
parisc
powerpc [POWERPC] mpc52xx_pic: fix main interrupt masking 2007-04-12 02:39:58 +10:00
ppc [ETH]: Make eth_type_trans set skb->dev like the other *_type_trans 2007-04-25 22:24:30 -07:00
s390 [NET]: Inline net_device_stats 2007-04-25 22:28:26 -07:00
sh sh: Kill bogus GCC4 symbol exports. 2007-03-28 17:24:47 +09:00
sh64
sparc [SPARC]: Fix section mismatch warnings in pci.c and pcic.c 2007-04-12 13:47:37 -07:00
sparc64 [SPARC64]: Fix inline directive in pci_iommu.c 2007-04-13 13:35:35 -07:00
um [SK_BUFF]: Introduce skb_mac_header() 2007-04-25 22:24:41 -07:00
v850
x86_64 [PATCH] x86-64: Always flush all pages in change_page_attr 2007-04-24 13:05:37 +02:00
xtensa [SK_BUFF]: Introduce skb_reset_mac_header(skb) 2007-04-25 22:24:32 -07:00