]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jul 2019 19:41:37 +0000 (12:41 -0700)
commitf4f88c036460abd1f84561b93358ce5c5d493591
treec13cff6aceb097f9eaf8e029f17fd66cc000c397
parent57590588dcd6e2d0314452cb4fb29ef8348ea4c1
be2net: Signal that the device cannot transmit during reconfiguration

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>
drivers/net/ethernet/emulex/benet/be_main.c