From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Fri, 20 Apr 2012 16:13:05 +0800 References: <1334618695-28338-1-git-send-email-martin@hundeboll.net> <1334756157-7257-1-git-send-email-martin@hundeboll.net> In-Reply-To: <1334756157-7257-1-git-send-email-martin@hundeboll.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201204201613.05738.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCHv3] batman-adv: Add get_ethtool_stats() support Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Wednesday, April 18, 2012 21:35:57 Martin Hundeb=C3=B8ll 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 > management packets (OGMs at this point) > translation table packets > distributed arp table packets >=20 > I would like you all to check if the increments are added at the right > locations and also if more counters would be relevant. (E.g. in bridge > loop avoidance code?) >=20 > This is the reworked approach from the previous stat counters patch I > send, where ethtool stats was suggested. This patch looks pretty good! I'd say we can merge it unless someone object= s?! Would it possible to count the number of bytes for the forwarded packets in= =20 addition to the packet count ? As I recall you also wanted to move=20 free_percpu() into mesh_free() ? Regards, Marek