]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf8f9fc33fd359c1e7df1c1f6c927f9c1b6127a03
tree29ee9a71fe1aa64be2b2cf18252dd7cbddfd1a32
parentcd88cad822e2ebb8d629e2d73fbd301ba99c77b4
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