diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2015-09-30 08:53:10 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-05 03:23:26 -0700 |
commit | 72c9ac4e1f4faf1f4e7252319ab8af2517891ae5 (patch) | |
tree | 5d3690dc1ba6f970ebc84c9f4cdc6cf6fd208df6 /drivers/net/ethernet/amd/xgbe/xgbe-drv.c | |
parent | 9c439e4b730f0d519821527afd697e6af99a67ab (diff) |
amd-xgbe: Add receive buffer unavailable statistic
Add a statistic that tracks how many times an interrupt is generated for
a receive buffer not being available to the hardware which prevents the
hardware from being able to DMA the received data.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe-drv.c')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-drv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c index aae9d5ecd182..24212d256a01 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c @@ -360,6 +360,9 @@ static irqreturn_t xgbe_isr(int irq, void *data) } } + if (XGMAC_GET_BITS(dma_ch_isr, DMA_CH_SR, RBU)) + pdata->ext_stats.rx_buffer_unavailable++; + /* Restart the device on a Fatal Bus Error */ if (XGMAC_GET_BITS(dma_ch_isr, DMA_CH_SR, FBE)) schedule_work(&pdata->restart_work); |