diff options
author | 2017-03-13 10:36:29 +0000 | |
---|---|---|
committer | 2017-03-13 12:13:20 -0700 | |
commit | 68e5cfaffaca73bda1263c503f9b186a196dd97b (patch) | |
tree | 32fc772e4481a74c18093baa0c5fc9ad9637f92c /drivers | |
parent | net: stmmac: set default number of rx and tx queues in stmmac_pci (diff) | |
download | linux-68e5cfaffaca73bda1263c503f9b186a196dd97b.tar.gz linux-68e5cfaffaca73bda1263c503f9b186a196dd97b.tar.bz2 linux-68e5cfaffaca73bda1263c503f9b186a196dd97b.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 915636ff2fc1..ec363e19cd79 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -1455,6 +1455,9 @@ static void stmmac_dma_interrupt(struct stmmac_priv *priv) int status; int rxfifosz = priv->plat->rx_fifo_size; + if (rxfifosz == 0) + rxfifosz = priv->dma_cap.rx_fifo_size; + status = priv->hw->dma->dma_interrupt(priv->ioaddr, &priv->xstats); if (likely((status & handle_rx)) || (status & handle_tx)) { if (likely(napi_schedule_prep(&priv->napi))) { |