slip: fix get_stats() method
commit6f0bee16d0840c272229f2038a23a9a02dfc803d
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 18 Aug 2010 03:13:08 +0000 (18 03:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 07:16:52 +0000 (19 00:16 -0700)
tree67b5147d41d3a9d0dff650c487ea9256c6435c85
parentdd57f970f91e2371040db709b3731ac34e43ccdb
slip: fix get_stats() method

Use integrated net_device_stats instead of a static one, and make sure
no transient values are feeded. ndo_get_stats() can be called by
concurrent cpus.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/slip.c