]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:47:38 +0000 (07:47 +0200)
[ Upstream commit e81b5e01c14add8395dfba7130f8829206bb507d ]

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>
Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/mvneta.c

index a53e7c6172a31a17c3c8015dc1d2b6f874ccc46a..b6ac97636a08c991513f3d4a88e22e66b4ba7880 100644 (file)
@@ -748,6 +748,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. */
        q_map = 0;
        for (queue = 0; queue < rxq_number; queue++) {