Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1605733 > unrolled thread

[PATCH 1/3] net: stmmac: Always enable MAC RX queues

Started byThierry Reding <thierry.reding@gmail.com>
First post2017-03-21 16:30 +0100
Last post2017-03-22 20:20 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/3] net: stmmac: Always enable MAC RX queues Thierry Reding <thierry.reding@gmail.com> - 2017-03-21 16:30 +0100
    Re: [PATCH 1/3] net: stmmac: Always enable MAC RX queues David Miller <davem@davemloft.net> - 2017-03-22 20:20 +0100

#1605733 — [PATCH 1/3] net: stmmac: Always enable MAC RX queues

FromThierry Reding <thierry.reding@gmail.com>
Date2017-03-21 16:30 +0100
Subject[PATCH 1/3] net: stmmac: Always enable MAC RX queues
Message-ID<tntJM-55L-11@gated-at.bofh.it>
From: Thierry Reding <treding@nvidia.com>

The MAC RX queues always need to be enabled in order to receive network
packets. Remove the condition that this only needs to be done for multi-
queue configurations.

Signed-off-by: Thierry Reding <treding@nvidia.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 d3a21519e4c0..298956032098 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -1943,7 +1943,7 @@ static void stmmac_mtl_configuration(struct stmmac_priv *priv)
 		stmmac_rx_queue_dma_chan_map(priv);
 
 	/* Enable MAC RX Queues */
-	if (rx_queues_count > 1 && priv->hw->mac->rx_queue_enable)
+	if (priv->hw->mac->rx_queue_enable)
 		stmmac_mac_enable_rx_queues(priv);
 
 	/* Set the HW DMA mode and the COE */
-- 
2.12.0

[toc] | [next] | [standalone]


#1606934

FromDavid Miller <davem@davemloft.net>
Date2017-03-22 20:20 +0100
Message-ID<tnTXA-7mv-23@gated-at.bofh.it>
In reply to#1605733
From: Thierry Reding <thierry.reding@gmail.com>
Date: Tue, 21 Mar 2017 16:12:09 +0100

> From: Thierry Reding <treding@nvidia.com>
> 
> The MAC RX queues always need to be enabled in order to receive network
> packets. Remove the condition that this only needs to be done for multi-
> queue configurations.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>

Applied to net-next

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web