Skip to contentSkip to conversation

net/ark: repair incorrect loop counter

PATCH Applied John Miller 2 participants 2 messages Oct 6, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/ark: repair incorrect loop counter

Change loop counter that should be based on the number of rx queues, not tx queues. This only affects debug output.

---
 drivers/net/ark/ark_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ark/ark_ethdev.c +1 -1
index ba25a9d..7130dca 100644
@@ -698,7 +698,7 @@ static void eth_ark_macaddr_remove(struct rte_eth_dev *dev,
 	ark_udm_dump_stats(ark->udm.v, "Post stop");
 	ark_udm_dump_perf(ark->udm.v, "Post stop");
 
-	for (i = 0; i < dev->data->nb_tx_queues; i++)
+	for (i = 0; i < dev->data->nb_rx_queues; i++)
 		eth_ark_rx_dump_queue(dev, i, __func__);
 
 	/* Stop the packet checker if it is running */
Signature · 1 line
1.9.1
Applied
#1 lore raw
Quoted 5 lines · John Miller

Change loop counter that should be based on the number of rx queues, not tx queues. This only affects debug output.

Applied to dpdk-next-net/master, thanks.