From: Martin Hundebøll Date: Fri, 20 Apr 2012 15:02:45 +0000 (+0200) Subject: batman-adv: Add get_ethtool_stats() support X-Git-Tag: v3.6-rc1~125^2~521^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8214865a55f805e65c33350bc0f1eb46dd8433d;p=pandora-kernel.git batman-adv: Add get_ethtool_stats() support Added additional counters in a bat_stats structure, which are exported through the ethtool api. The counters are specific to batman-adv and includes: forwarded packets and bytes management packets and bytes (aggregated OGMs at this point) translation table packets New counters are added by extending "enum bat_counters" in types.h and adding corresponding descriptive string(s) to bat_counters_strings in soft-iface.c. Counters are increased by calling batadv_add_counter() and incremented by one by calling batadv_inc_counter(). Signed-off-by: Martin Hundebøll Signed-off-by: Sven Eckelmann --- Reading git-diff-tree failed