summaryrefslogtreecommitdiff
path: root/lib/kstrtox.h
diff options
context:
space:
mode:
authorLendacky, Thomas <Thomas.Lendacky@amd.com>2014-09-05 18:02:30 -0500
committerDavid S. Miller <davem@davemloft.net>2014-09-05 22:37:30 -0700
commit6026510896adfa0db5ed76a6d6d1cd1602b29208 (patch)
tree02265cd265915f8a72e4d348af4ff5ff245b1c54 /lib/kstrtox.h
parente1743a16a043f3d6b707730e46ba33ca931fb553 (diff)
downloadlinux-6026510896adfa0db5ed76a6d6d1cd1602b29208.tar.gz
linux-6026510896adfa0db5ed76a6d6d1cd1602b29208.tar.bz2
linux-6026510896adfa0db5ed76a6d6d1cd1602b29208.zip
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>
Diffstat (limited to 'lib/kstrtox.h')
0 files changed, 0 insertions, 0 deletions