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)
commita1a38cad4c71bc08403b204fbe0ba98b4447f8bf
tree3fb0f6092d675aef96dd9bc06d873d356ff45ee3
parentb4e178224cfdc8aae7dda0baab34a4e4110a2e93
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