]> 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)
commitb466562a2fde01eca449fb809862b7ab32567841
treec31c0e3a0a8bd7c25351654145168a762cfb146f
parent7198afd068fff18bc4e22d0e3576a065844dd9e5
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