diff options
author | Doug Berger <opendmb@gmail.com> | 2019-12-18 03:51:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-20 05:11:10 +0300 |
commit | f1af17c0b7a51357699bba7c8cba1276c9486907 (patch) | |
tree | 4b0891007774619c54d881d34f9de5c824991cb3 /drivers/net/ethernet/broadcom/genet/bcmgenet.h | |
parent | e3fa85883d1566d788960c0f31866a26c898c070 (diff) | |
download | linux-f1af17c0b7a51357699bba7c8cba1276c9486907.tar.xz |
net: bcmgenet: Add software counters to track reallocations
When inserting the TSB, keep track of how many times we had to do
it and if there was a failure in doing so, this helps profile the
driver for possibly incorrect headroom settings.
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.h b/drivers/net/ethernet/broadcom/genet/bcmgenet.h index d33c0d093f82..61a6fe9f4cec 100644 --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.h +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.h @@ -144,6 +144,8 @@ struct bcmgenet_mib_counters { u32 alloc_rx_buff_failed; u32 rx_dma_failed; u32 tx_dma_failed; + u32 tx_realloc_tsb; + u32 tx_realloc_tsb_failed; }; #define UMAC_HD_BKP_CTRL 0x004 |