Thread (27 messages) flat view 27 messages, 5 authors, 2017-03-29

Re: [PATCH net-next 2/2] net: stmmac: fix number of tx queues in stmmac_poll

From: Joao Pinto <hidden>
Date: 2017-03-27 09:05:41

Às 7:26 AM de 3/25/2017, Corentin Labbe escreveu:
On Fri, Mar 24, 2017 at 05:16:45PM +0000, Joao Pinto wrote:
quoted
For cores that have more than 1 TX queue configured, the kernel would crash,
since only one TX queue is permitted by default.

Signed-off-by: Joao Pinto <redacted>
---
 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 3827952..1eab084 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -3429,7 +3429,7 @@ static int stmmac_poll(struct napi_struct *napi, int budget)
 	struct stmmac_rx_queue *rx_q =
 		container_of(napi, struct stmmac_rx_queue, napi);
 	struct stmmac_priv *priv = rx_q->priv_data;
-	u32 tx_count = priv->dma_cap.number_tx_queues;
+	u32 tx_count = priv->plat->tx_queues_to_use;
 	u32 chan = rx_q->queue_index;
 	u32 work_done = 0;
 	u32 queue = 0;
-- 
2.9.3
This patch fix the performance issue on dwmac-sun8i only.
Ok, great!
The dwmac-sunxi is still broken.
What is the difference between the setups?

Thanks,
Joao
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help