• Lendacky, Thomas's avatar
    amd-xgbe: Treat certain counter registers as 64 bit · 60265108
    Lendacky, Thomas authored
    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: default avatarTom Lendacky <thomas.lendacky@amd.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    60265108
xgbe-dev.c 72.8 KB