r8169: fix memory corruption on retrieval of hardware statistics.
authorFrancois Romieu <[email protected]>
Fri, 26 Jan 2018 00:53:26 +0000 (01:53 +0100)
committerDavid S. Miller <[email protected]>
Fri, 26 Jan 2018 02:34:04 +0000 (21:34 -0500)
commita78e93661c5fd30b9e1dee464b2f62f966883ef7
tree01fd49eb19015b753a0714ed690444c3c1a42eee
parentf15ca723c1ebe6c1a06bc95fda6b62cd87b44559
r8169: fix memory corruption on retrieval of hardware statistics.

Hardware statistics retrieval hurts in tight invocation loops.

Avoid extraneous write and enforce strict ordering of writes targeted to
the tally counters dump area address registers.

Signed-off-by: Francois Romieu <[email protected]>
Tested-by: Oliver Freyermuth <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/realtek/r8169.c