summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/genet/bcmgenet.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-11-19 10:29:56 -0800
committerDavid S. Miller <davem@davemloft.net>2014-11-21 14:46:12 -0500
commit44c8bc3ce39f4cbeb7bf13162666fb6d0aad864d (patch)
tree1006ed319d9ebbb67df5f611989d99a63b767d45 /drivers/net/ethernet/broadcom/genet/bcmgenet.h
parent60b4ea1781fd862e9222d082af79a5770440d390 (diff)
downloadlinux-44c8bc3ce39f4cbeb7bf13162666fb6d0aad864d.tar.gz
linux-44c8bc3ce39f4cbeb7bf13162666fb6d0aad864d.tar.bz2
linux-44c8bc3ce39f4cbeb7bf13162666fb6d0aad864d.zip
net: bcmgenet: 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/genet/bcmgenet.h')
-rw-r--r--drivers/net/ethernet/broadcom/genet/bcmgenet.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.h b/drivers/net/ethernet/broadcom/genet/bcmgenet.h
index 31b2da5f9b82..c4ca7282a601 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmgenet.h
+++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.h
@@ -143,6 +143,9 @@ struct bcmgenet_mib_counters {
u32 rbuf_ovflow_cnt;
u32 rbuf_err_cnt;
u32 mdf_err_cnt;
+ u32 alloc_rx_buff_failed;
+ u32 rx_dma_failed;
+ u32 tx_dma_failed;
};
#define UMAC_HD_BKP_CTRL 0x004