1
0
Fork 0
alistair23-linux/drivers/net/ethernet/intel/e1000e
Konstantin Khlebnikov d17ba0f616 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 0f9e980bf5
("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>
2019-05-28 16:08:43 -07:00
..
80003es2lan.c e1000e: fix a missing check for return value 2019-02-05 16:08:55 -08:00
80003es2lan.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
82571.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
82571.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
Makefile net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
defines.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
e1000.h e1000e: extend PTP gettime function to read system clock 2018-11-09 19:43:51 -08:00
ethtool.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
hw.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
ich8lan.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
ich8lan.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
mac.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
mac.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
manage.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
manage.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
netdev.c e1000e: start network tx queue only when link is up 2019-05-28 16:08:43 -07:00
nvm.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
nvm.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
param.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
phy.c net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
phy.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00
ptp.c e1000e: extend PTP gettime function to read system clock 2018-11-09 19:43:51 -08:00
regs.h net: intel: Cleanup the copyright/license headers 2018-04-27 14:00:04 -04:00