net: mvneta: use proper rxq_number in loop on rx queues
authorYelena Krivosheev <yelena@marvell.com>
Tue, 19 Dec 2017 16:59:46 +0000 (17:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 17:24:11 +0000 (12:24 -0500)
When adding the RX queue association with each CPU, a typo was made in
the mvneta_cleanup_rxqs() function. This patch fixes it.

[gregory.clement@free-electrons.com: add commit log and fixes tag]
Cc: stable@vger.kernel.org
Fixes: 2dcf75e2793c ("net: mvneta: Associate RX queues with each CPU")
Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
Tested-by: Dmitri Epshtein <dima@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c

index 16b2bfb2cf5172fc8cb80739df4c6093721fa9a4..1e0835655c936a388171a2ee20b25bb09a03a1df 100644 (file)
@@ -3015,7 +3015,7 @@ static void mvneta_cleanup_rxqs(struct mvneta_port *pp)
 {
        int queue;
 
-       for (queue = 0; queue < txq_number; queue++)
+       for (queue = 0; queue < rxq_number; queue++)
                mvneta_rxq_deinit(pp, &pp->rxqs[queue]);
 }