]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9921243d33928dd67e5900b8095d197b08b9788
treec31c0e3a0a8bd7c25351654145168a762cfb146f
parentbc817a7a0930a1cfef2e87585ba5ce927bc66061
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