aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bcmsysport.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2018-09-27 15:36:14 -0700
committerDavid S. Miller <davem@davemloft.net>2018-10-01 23:11:53 -0700
commita5d78ce7936c9f6fd5a75c1d6b51587c6d05e7b3 (patch)
treecea668d56d068aff9a40fcf16a8c7024d406b8f4 /drivers/net/ethernet/broadcom/bcmsysport.h
parentnet: systemport: Be drop monitor friendly while re-allocating headroom (diff)
downloadlinux-dev-a5d78ce7936c9f6fd5a75c1d6b51587c6d05e7b3.tar.xz
linux-dev-a5d78ce7936c9f6fd5a75c1d6b51587c6d05e7b3.zip
net: systemport: 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: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/broadcom/bcmsysport.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.h b/drivers/net/ethernet/broadcom/bcmsysport.h
index 046c6c1d97fd..a7a230884a87 100644
--- a/drivers/net/ethernet/broadcom/bcmsysport.h
+++ b/drivers/net/ethernet/broadcom/bcmsysport.h
@@ -607,6 +607,8 @@ struct bcm_sysport_mib {
u32 alloc_rx_buff_failed;
u32 rx_dma_failed;
u32 tx_dma_failed;
+ u32 tx_realloc_tsb;
+ u32 tx_realloc_tsb_failed;
};
/* HW maintains a large list of counters */