summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bcmsysport.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2015-03-01 02:09:16 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-03-01 19:02:11 (GMT)
commitf62ba9c14b85a682b64a4c421f91de0bd2aa8538 (patch)
treea4c721eb73eb3214f4a555164f763d3ddf5abf2c /drivers/net/ethernet/broadcom/bcmsysport.h
parent765dd3bb44711b4ba36c1e06f9c4b7bfe73ffef7 (diff)
downloadlinux-f62ba9c14b85a682b64a4c421f91de0bd2aa8538.tar.xz
net: bcmgenet: fix software maintained statistics
Commit 44c8bc3ce39f ("net: bcmgenet: log RX buffer allocation and RX/TX dma failures") added a few software maintained statistics using BCMGENET_STAT_MIB_RX and BCMGENET_STAT_MIB_TX. These statistics are read from the hardware MIB counters, such that bcmgenet_update_mib_counters() was trying to read from a non-existing MIB offset for these counters. Fix this by introducing a special type: BCMGENET_STAT_SOFT, similar to BCMGENET_STAT_NETDEV, such that bcmgenet_get_ethtool_stats will read from the software mib. Fixes: 44c8bc3ce39f ("net: bcmgenet: log RX buffer allocation and RX/TX dma failures") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcmsysport.h')
0 files changed, 0 insertions, 0 deletions