lan78xx: add ndo_get_stats64
authorWoojung Huh <woojung.huh@microchip.com>
Wed, 16 Mar 2016 22:10:42 +0000 (22:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Mar 2016 02:27:48 +0000 (22:27 -0400)
commita59f8c5b048dc938fb958c91c282c865cd845705
tree29ee9a71fe1aa64be2b2cf18252dd7cbddfd1a32
parent20ff55655a93554611fb7790c8a2d29ee4598d24
lan78xx: add ndo_get_stats64

Add lan78xx_get_stats64 of ndo_get_stats64 to report
all statistics counters including errors from HW statistics.

Read from HW when auto suspend is disabled, use saved counter when
auto suspend is enabled because periodic call to ndo_get_stats64
prevents USB auto suspend.

Signed-off-by: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c