]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: start network tx queue only when link is up
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Wed, 17 Apr 2019 08:13:20 +0000 (11:13 +0300)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 28 May 2019 23:08:43 +0000 (16:08 -0700)
commit9db5c97bf518b529f6a760835f1fda7a0a175d02
tree743301d3a876fa3356e2e648aef0f65b48b961f9
parent0c27b983bdcadb2b38d4d226ff8daaeef52af03f
e1000e: start network tx queue only when link is up

Driver does not want to keep packets in Tx queue when link is lost.
But present code only reset NIC to flush them, but does not prevent
queuing new packets. Moreover reset sequence itself could generate
new packets via netconsole and NIC falls into endless reset loop.

This patch wakes Tx queue only when NIC is ready to send packets.

This is proper fix for problem addressed by commit bda572437597
("e1000e: fix cyclic resets at link up with active tx").

Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Suggested-by: Alexander Duyck <alexander.duyck@gmail.com>
Tested-by: Joseph Yasi <joe.yasi@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Tested-by: Oleksandr Natalenko <oleksandr@redhat.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c