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)
commit034de00b06fe2b2c451f7435414f15c1b625e6b0
treef5d927349c82bfe6f0c1555e3d7f9675a826713a
parent0fdf4d096102464e290d5ccaee8ad0cee7bd9e8a
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