From: Xander Huff Date: Tue, 13 Jan 2015 22:15:51 +0000 (-0600) Subject: net/macb: improved ethtool statistics support X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~134^2~220 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ff13f1c620e4387e1a9b9bc5d95d67052615037;p=pandora-kernel.git net/macb: improved ethtool statistics support Currently `ethtool -S` simply returns "no stats available". It would be more useful to see what the various ethtool statistics registers' values are. This change implements get_ethtool_stats, get_strings, and get_sset_count functions to accomplish this. Read all GEM statistics registers and sum them into macb.ethtool_stats. Add the necessary infrastructure to make this accessible via `ethtool -S`. Update gem_update_stats to utilize ethtool_stats. Signed-off-by: Xander Huff Signed-off-by: David S. Miller --- Reading git-diff-tree failed