1
0
Fork 0
alistair23-linux/drivers/net/ethernet/renesas
Ben Hutchings 4398f9c817 sh_eth: Mitigate lost statistics updates
The statistics registers have write-clear behaviour, which means we
will lose any increment between the read and write.  Mitigate this by
only clearing when we read a non-zero value, so we will never falsely
report a total of zero.  This also saves time as we only handle
error statistics here and they won't often be incremented.

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-03-04 15:40:54 -05:00
..
Kconfig net: sh_eth: fix driver dependencies 2014-09-02 13:23:25 -07:00
Makefile
sh_eth.c sh_eth: Mitigate lost statistics updates 2015-03-04 15:40:54 -05:00
sh_eth.h sh_eth: Implement ethtool register dump operations 2015-03-04 15:40:54 -05:00