netdev: introduce dev_get_stats()
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 20 Nov 2008 05:40:23 +0000 (21:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Nov 2008 05:40:23 +0000 (21:40 -0800)
In order for the network device ops get_stats call to be immutable, the handling
of the default internal network device stats block has to be changed. Add a new
helper function which replaces the old use of internal_get_stats.

Note: change return code to make it clear that the caller should not
go changing the returned statistics.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found