net: mvneta: fix mtu change on port without link
authorYelena Krivosheev <yelena@marvell.com>
Wed, 18 Jul 2018 16:10:51 +0000 (18:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Jul 2018 05:12:55 +0000 (22:12 -0700)
commit8466baf788ec3e18836bd9c91ba0b1a07af25878
treea99750387c87ef0fa9a707865c8fbbf1c60e0f70
parent7a86f05faf112463cfbbdfd222012e247de461a1
net: mvneta: fix mtu change on port without link

It is incorrect to enable TX/RX queues (call by mvneta_port_up()) for
port without link. Indeed MTU change for interface without link causes TX
queues to stuck.

Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP
network unit")
Signed-off-by: Yelena Krivosheev <yelena@marvell.com>
[gregory.clement: adding Fixes tags and rewording commit log]
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c