Re: [B.A.T.M.A.N.] [PATCHv4] batman-adv: Add get_ethtool_stats() support

Marek Lindner
2012-04-22T09:03:10Z

On Friday, April 20, 2012 23:02:45 Martin Hundebøll wrote:
> 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
> distributed arp 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 add_counter() and incremented by one
> by calling inc_counter().

Applied in revision 560985e.

Thanks,
Marek