]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: batman-adv: Don't increment stats of foreign device
authorSven Eckelmann <sven.eckelmann@gmx.de>
Tue, 20 Jul 2010 22:25:20 +0000 (00:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 21:29:05 +0000 (14:29 -0700)
commit08f6b319ef9ab7e5f736a9c6f78ed7b3318a89cc
tree3fb0f6092d675aef96dd9bc06d873d356ff45ee3
parent913f7cf10b12e02fa585943b3a44e857c01db98a
Staging: batman-adv: Don't increment stats of foreign device

The receive hook for batman-adv ethernet frames tried to get the last
device which processed the skb before us. It only used that information
to update the rx_bytes and rx_packets stat of that foreign device which
already has updated it using its own receive functions.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/hard-interface.c