]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
net: mvneta: fix enable of all initialized RXQs
authorYelena Krivosheev <yelena@marvell.com>
Fri, 30 Mar 2018 10:05:31 +0000 (12:05 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Mar 2018 18:27:47 +0000 (14:27 -0400)
In mvneta_port_up() we enable relevant RX and TX port queues by write
queues bit map to an appropriate register.

q_map must be ZERO in the beginning of this process.

Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c

index 25e9a551cc8c3e726ad23234f5de5c20ec0caec6..3f6fb635738c998ea4b69e0e3ef9ca77e7bef6dc 100644 (file)
@@ -1132,6 +1132,7 @@ static void mvneta_port_up(struct mvneta_port *pp)
        }
        mvreg_write(pp, MVNETA_TXQ_CMD, q_map);
 
+       q_map = 0;
        /* Enable all initialized RXQs. */
        for (queue = 0; queue < rxq_number; queue++) {
                struct mvneta_rx_queue *rxq = &pp->rxqs[queue];