amd-xgbe: Treat certain counter registers as 64 bit
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 5 Sep 2014 23:02:30 +0000 (18:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 6 Sep 2014 05:37:30 +0000 (22:37 -0700)
commit6026510896adfa0db5ed76a6d6d1cd1602b29208
tree02265cd265915f8a72e4d348af4ff5ff245b1c54
parente1743a16a043f3d6b707730e46ba33ca931fb553
amd-xgbe: Treat certain counter registers as 64 bit

Even if the management counters are configured to be 32 bit register
values, the [rt]xoctetcount_gb and [rt]xoctetcount_g counters are
always 64 bit counter registers.  Since they are not being treated as
64 bit values, these statistics are being reported incorrectly (ifconfig,
ethtool, etc.).

Update the routines used to read the registers to access the "hi"
register (an offset of 4 from the "lo" register) to create a 64 bit
value for these 64 bit counters.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-dev.c