Skip to content

Commit 68e5cfa

Browse files
Joao Pintodavem330
authored andcommitted
net: stmmac: added default rx queue size in stmmac_dma_interrupt
This patch adds the rx queue default size when dma interrupts are treated, since dma op mode can be also set there. Signed-off-by: Joao Pinto <jpinto@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 26d6851 commit 68e5cfa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,9 @@ static void stmmac_dma_interrupt(struct stmmac_priv *priv)
14551455
int status;
14561456
int rxfifosz = priv->plat->rx_fifo_size;
14571457

1458+
if (rxfifosz == 0)
1459+
rxfifosz = priv->dma_cap.rx_fifo_size;
1460+
14581461
status = priv->hw->dma->dma_interrupt(priv->ioaddr, &priv->xstats);
14591462
if (likely((status & handle_rx)) || (status & handle_tx)) {
14601463
if (likely(napi_schedule_prep(&priv->napi))) {

0 commit comments

Comments
 (0)