From: Stephen Hemminger Date: Thu, 20 Nov 2008 05:40:23 +0000 (-0800) Subject: netdev: introduce dev_get_stats() X-Git-Tag: v2.6.29-rc1~581^2~676 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeda3fd64f75bcbfaa70ce946513abaf3f23b8e0;p=pandora-kernel.git netdev: introduce dev_get_stats() 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed