Skip to content

Commit dd1c68b

Browse files
committed
HSD #15012728816: net: stmmac: xgmac: add ethtool per-queue irq statistic support
Commit af9bf70 ("net: stmmac: add ethtool per-queue irq statistic support") introduced ethtool per-queue statistics support to display number of interrupts generated by DMA tx and DMA rx for DWMAC4 core. This patch extend the support to XGMAC core. Signed-off-by: Teoh Ji Sheng <ji.sheng.teoh@intel.com>
1 parent 8b3bcc5 commit dd1c68b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,12 @@ static int dwxgmac2_dma_interrupt(void __iomem *ioaddr,
357357

358358
if (likely(intr_status & XGMAC_RI)) {
359359
x->rx_normal_irq_n++;
360+
x->rxq_stats[chan].rx_normal_irq_n++;
360361
ret |= handle_rx;
361362
}
362363
if (likely(intr_status & (XGMAC_TI | XGMAC_TBU))) {
363364
x->tx_normal_irq_n++;
365+
x->txq_stats[chan].tx_normal_irq_n++;
364366
ret |= handle_tx;
365367
}
366368
}

0 commit comments

Comments
 (0)