* [PATCH net-next] net: stmmac: rx queue to dma channel mapping fix
@ 2017-04-03 15:34 Joao Pinto
2017-04-05 13:47 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Joao Pinto @ 2017-04-03 15:34 UTC (permalink / raw)
To: davem; +Cc: netdev, Joao Pinto
In hardware configurations where multiple queues are active,
the rx queue needs to be mapped into a dma channel, even if
a single rx queue is used.
Signed-off-by: Joao Pinto <jpinto@synopsys.com>
---
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index c1c6319..7cbda41 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -2001,7 +2001,7 @@ static void stmmac_mtl_configuration(struct stmmac_priv *priv)
stmmac_configure_cbs(priv);
/* Map RX MTL to DMA channels */
- if (rx_queues_count > 1 && priv->hw->mac->map_mtl_to_dma)
+ if (priv->hw->mac->map_mtl_to_dma)
stmmac_rx_queue_dma_chan_map(priv);
/* Enable MAC RX Queues */
--
2.9.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: stmmac: rx queue to dma channel mapping fix
2017-04-03 15:34 [PATCH net-next] net: stmmac: rx queue to dma channel mapping fix Joao Pinto
@ 2017-04-05 13:47 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-04-05 13:47 UTC (permalink / raw)
To: Joao.Pinto; +Cc: netdev
From: Joao Pinto <Joao.Pinto@synopsys.com>
Date: Mon, 3 Apr 2017 16:34:04 +0100
> In hardware configurations where multiple queues are active,
> the rx queue needs to be mapped into a dma channel, even if
> a single rx queue is used.
>
> Signed-off-by: Joao Pinto <jpinto@synopsys.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-05 13:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-03 15:34 [PATCH net-next] net: stmmac: rx queue to dma channel mapping fix Joao Pinto
2017-04-05 13:47 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.