RE: [PATCH 2/2] lan78xx: add ndo_get_stats64

2016-03-19 Thread Woojung.Huh
> > + storage->rx_length_errors = (stats.rx_undersize_frame_errors + > > +stats.rx_oversize_frame_errors); > > Parens not needed. > > > + storage->rx_errors = (stats.rx_fcs_errors + > > + stats.rx_alignment_errors + > > +

Re: [PATCH 2/2] lan78xx: add ndo_get_stats64

2016-03-18 Thread Sergei Shtylyov
Hello. On 3/16/2016 1:52 AM, woojung@microchip.com wrote: From: Woojung Huh 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

[PATCH 2/2] lan78xx: add ndo_get_stats64

2016-03-15 Thread Woojung.Huh
From: Woojung Huh 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