From: david decotigny Date: Wed, 16 Nov 2011 12:15:13 +0000 (+0000) Subject: forcedeth: implement ndo_get_stats64() API X-Git-Tag: v3.3-rc1~182^2~550 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d827aece36300d0fe2135d7c2232c77ee07994;p=pandora-kernel.git forcedeth: implement ndo_get_stats64() API This commit implements the ndo_get_stats64() API for forcedeth. Since hardware stats are being updated from different contexts (process and timer), this commit adds synchronization. For software stats, it relies on the u64_stats_sync.h API. Tested: - 16-way SMP x86_64 -> RX bytes:7244556582 (7.2 GB) TX bytes:181904254 (181.9 MB) - pktgen + loopback: identical rx_bytes/tx_bytes and rx_packets/tx_packets Signed-off-by: David Decotigny Signed-off-by: David S. Miller --- Reading git-diff-tree failed