diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-11-19 21:29:55 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-21 22:46:12 +0300 |
commit | 60b4ea1781fd862e9222d082af79a5770440d390 (patch) | |
tree | b812964032b6e920914f2860f755e48ba5271456 /drivers/net/ethernet/broadcom/bcmsysport.h | |
parent | 9c7077622dd917457ced680a23b7f175769471d9 (diff) | |
download | linux-60b4ea1781fd862e9222d082af79a5770440d390.tar.xz |
net: systemport: log RX buffer allocation and RX/TX DMA failures
To help troubleshoot heavy memory pressure conditions, add a bunch of
statistics counter to log RX buffer allocation and RX/TX DMA mapping
failures. These are reported like any other counters through the ethtool
stats interface.
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')
-rw-r--r-- | drivers/net/ethernet/broadcom/bcmsysport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.h b/drivers/net/ethernet/broadcom/bcmsysport.h index b08dab828101..fc19417d82a5 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.h +++ b/drivers/net/ethernet/broadcom/bcmsysport.h @@ -557,6 +557,9 @@ struct bcm_sysport_mib { u32 rxchk_other_pkt_disc; u32 rbuf_ovflow_cnt; u32 rbuf_err_cnt; + u32 alloc_rx_buff_failed; + u32 rx_dma_failed; + u32 tx_dma_failed; }; /* HW maintains a large list of counters */ |