]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:47:46 +0000 (19:47 -0600)
commitc2551e9b12e12b0fb707aceeb254ae6463c0f04f
treea0c385009d3a0cbf6176026df21de9347a8828cb
parente9e1b2fa454eb1760483746ab7bf9ff1661f0282
net: mvneta: fix mtu change on port without link

BugLink: https://bugs.launchpad.net/bugs/1836117
[ Upstream commit 8466baf788ec3e18836bd9c91ba0b1a07af25878 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/ethernet/marvell/mvneta.c