]> git.baikalelectronics.ru Git - kernel.git/commit
slip: Use net_device_stats from struct net_device
authorTobias Klauser <tklauser@distanz.ch>
Thu, 26 Aug 2010 22:12:08 +0000 (22:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Aug 2010 02:25:59 +0000 (19:25 -0700)
commitb89863b1a0a13be363bcb1f710295b35b4d2808c
treef5d927349c82bfe6f0c1555e3d7f9675a826713a
parent4497b580c13102d9d52811760cb7db6ec6b7ad79
slip: Use net_device_stats from struct net_device

Use net_device->stats for stats instead of private variable copies in
struct slip. Use ndo_get_stat64 so the additions can be performed on a private
destination buffer.

Cc: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/slip.c
drivers/net/slip.h