]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: call netif_carrier_off early on down
authorEliezer Tamir <eliezer.tamir@linux.intel.com>
Sat, 21 Mar 2015 00:41:52 +0000 (17:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 21 Mar 2015 00:42:43 +0000 (17:42 -0700)
commitf9807110d8c9f255fe12099753400a3d891a0162
tree7848cbe3292bc53bff772cf18c1cdf489c306be5
parent0aa9c5ef775056f82bcde5991c0d29bdc7e9279d
e1000e: 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/e1000e/netdev.c