]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Fix rx packet/bytes stats on local ARP reply
authorSven Eckelmann <sven@narfation.org>
Wed, 5 Apr 2017 14:26:17 +0000 (16:26 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Fri, 19 May 2017 10:18:52 +0000 (12:18 +0200)
commit63c1fbce4d48ce9025a8b2a7a30e0b59ab8f332a
tree49ce613d238cf29232de0fe030fe6670aaf75663
parent81e0e7134ab085ac5d0890177bfed38a0f2be4f8
batman-adv: Fix rx packet/bytes stats on local ARP reply

The stats are generated by batadv_interface_stats and must not be stored
directly in the net_device stats member variable. The batadv_priv
bat_counters information is assembled when ndo_get_stats is called. The
stats previously stored in net_device::stats is then overwritten.

The batman-adv counters must therefore be increased when an ARP packet is
answered locally via the distributed arp table.

Fixes: d6b176cc8a03 ("batman-adv: Distributed ARP Table - add snooping functions for ARP messages")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
net/batman-adv/distributed-arp-table.c