lan78xx: fix statistics counter error
authorWoojung Huh <woojung.huh@microchip.com>
Mon, 25 Apr 2016 22:22:32 +0000 (22:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 20:36:11 +0000 (16:36 -0400)
commit74d79a2e30c476ccc7d45ecf978f38d815287f81
treec31c0e3a0a8bd7c25351654145168a762cfb146f
parent1d9619d5337df6cf56eb66b6c8213d1317583513
lan78xx: fix statistics counter error

Fix rx_bytes, tx_bytes and tx_frames error in netdev.stats.
- rx_bytes counted bytes excluding size of struct ethhdr.
- tx_packets didn't count multiple packets in a single urb
- tx_bytes included 8 bytes of extra commands.

Signed-off-by: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c
This page took 0.036223 seconds and 5 git commands to generate.