Staging: batman-adv: Count Ethernet header for incoming packets
authorSimon Wunderlich <siwu@hrz.tu-chemnitz.de>
Sat, 4 Sep 2010 23:58:21 +0000 (01:58 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 5 Sep 2010 07:29:43 +0000 (00:29 -0700)
commit556c83ece8e8a897d7cad23315407ecd1a195fce
treeaca7c398c8c3e585ab9b3db4cb0888d6ffb72816
parentb19ad29f553c417075ce2ad7fbd3ba85ec5f7494
Staging: batman-adv: Count Ethernet header for incoming packets

The Ethernet header is counted when transmitting a packet, so it should also
be counted when receiving a packet. With this patch, the rx_bytes and tx_bytes
statistics behave like an ordinary Ethernet interface.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/batman-adv/soft-interface.c