From: Brice Goglin Date: Thu, 16 Apr 2009 02:23:56 +0000 (+0000) Subject: myri10ge: force stats update in ethtool gstats X-Git-Tag: v2.6.31-rc1~330^2~614 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=590818250684d18bb0e30c45d79971dcdff96ad0;p=pandora-kernel.git myri10ge: force stats update in ethtool gstats Force a statistics update when our ethtool gstats routine is called. Otherwise, ethtool will continue to read stale stats until something forces an update by reading /proc/net/dev This requires putting a lock around the stats update to guard against 2 threads (one via ethtool, and one via procfs) updating the stats at once. Signed-off-by: Brice Goglin Signed-off-by: David S. Miller --- Reading git-diff-tree failed