myricom: remove stats_lock
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 19 Jun 2011 20:07:46 +0000 (20:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jun 2011 20:02:36 +0000 (13:02 -0700)
commit306ff6eb8e9c18bcafb8ca5be4be3c78dfe45475
tree02fdfd2682061ca9078962cf41a32d3f40c95043
parenteac56465b88cc9ad3b964a9f0a02be3d3a136ddf
myricom: remove stats_lock

stats_lock is non useless, lets remove it.

Also, ndo_get_stats64() doesnt have to clear the stats, caller takes
care of this.

Note: folding 32bit fields in 64bit one is problematic when one of 32bit
values wraps : SNMP reader will see a ~2^32 back change in a 64bit
value. A future patch should fix this.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Stephen Hemminger <shemminger@vyatta.com>
CC: Andrew Gallatin <gallatin@myri.com>
CC: Brice Goglin <brice@myri.com>
Acked-by: Jon Mason <mason@myri.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/myri10ge/myri10ge.c