]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
be2net: Signal that the device cannot transmit during reconfiguration
authorBenjamin Poirier <bpoirier@suse.com>
Tue, 16 Jul 2019 08:16:55 +0000 (17:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Aug 2019 17:05:22 +0000 (19:05 +0200)
commitf46c7e629d30fb92d276c32cec37293bd866d931
tree790b5f43d8f1a4a4b308ee5d179396a419f87b42
parenta281bcaea8923cdba95686a7f35da4cdc74c847b
be2net: Signal that the device cannot transmit during reconfiguration

[ Upstream commit 7429c6c0d9cb086d8e79f0d2a48ae14851d2115e ]

While changing the number of interrupt channels, be2net stops adapter
operation (including netif_tx_disable()) but it doesn't signal that it
cannot transmit. This may lead dev_watchdog() to falsely trigger during
that time.

Add the missing call to netif_carrier_off(), following the pattern used in
many other drivers. netif_carrier_on() is already taken care of in
be_open().

Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/emulex/benet/be_main.c