]> git.baikalelectronics.ru Git - kernel.git/commit
e1000: call netif_carrier_off early on down
authorEliezer Tamir <eliezer.tamir@linux.intel.com>
Wed, 25 Feb 2015 15:52:49 +0000 (15:52 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 6 Mar 2015 10:47:10 +0000 (02:47 -0800)
commitbf4aa6fecffc1497b8c4a6fddb4ccddfac02214e
treeb3fdfbc21687b8f9f92ccccfe60daefeb51d5ea3
parentfc070c66fbfda370356b307632eda40a8f70f721
e1000: call netif_carrier_off early on down

When bringing down an interface netif_carrier_off() should be
one the first things we do, since this will prevent the stack
from queuing more packets to this interface.
This operation is very fast, and should make the device behave
much nicer when trying to bring down an interface under load.

Also, this would Do The Right Thing (TM) if this device has some
sort of fail-over teaming and redirect traffic to the other IF.

Move netif_carrier_off as early as possible.

Signed-off-by: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000/e1000_main.c