]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
Update acces to netstats for 2.6.29
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Thu, 15 Jan 2009 08:30:18 +0000 (08:30 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Thu, 15 Jan 2009 08:30:18 +0000 (08:30 +0000)
commit17556b462ea4b64011d44cfbc63abb32395f4719
tree27340943c57a6bc7d682a06445767ca96e632a76
parent0f64ed9f8d060aa763156d349616cf8546d1e7b9
Update acces to netstats for 2.6.29
---
The successor of dev->get_stats(dev) in 2.6.29 is dev_get_stats(dev)
which provides a const(!) pointer for read only access to the stats.
As the usual current method to access the stats is to reference
dev->stats directly as stats is part of the struce netdevice
since 2.6.23 this patch implements this method of access now.
For kernels < 2.6.23 the netstats are part of the private data
and only this is handled by a separate wrapper now.
The idea was also to get a proper source code after strip-src.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@901 030b6a49-0b11-0410-94ab-b0dab22257f2
kernel/2.6/drivers/net/can/dev.c
kernel/2.6/drivers/net/can/mscan/mscan.c
kernel/2.6/drivers/net/can/old/i82527/i82527.c
kernel/2.6/drivers/net/can/old/sja1000/sja1000.c
kernel/2.6/drivers/net/can/sja1000/sja1000.c
kernel/2.6/drivers/net/can/slcan.c
kernel/2.6/drivers/net/can/softing/softing_main.c
kernel/2.6/include/linux/can/dev.h