]> git.baikalelectronics.ru Git - kernel.git/commit
ixgb: 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:41:52 +0000 (17:41 -0700)
commit768056bf3ca3c4094d4db661f9a1279aba1c2228
tree8311dff36e907c1cd8202a0c37fa8fc19e5f6323
parent3e7d81fbd5f6319b72b6011373922ac8c28179fc
ixgb: 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>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgb/ixgb_main.c