commit | 590818250684d18bb0e30c45d79971dcdff96ad0 | [log] [tgz] |
---|---|---|
author | Brice Goglin <brice@myri.com> | Thu Apr 16 02:23:56 2009 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 16 18:00:43 2009 -0700 |
tree | 74569b7dc4061819495b00ac4321a30f78791dad | |
parent | a54bfa40fd16aeb90bc556189221576f746f8567 [diff] |
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 <brice@myri.com> Signed-off-by: David S. Miller <davem@davemloft.net>