igb: use netif_carrier_off earlier when bringing if down
authorTodd Fujinaka <todd.fujinaka@intel.com>
Sat, 21 Mar 2015 00:41:53 +0000 (17:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 21 Mar 2015 00:45:12 +0000 (17:45 -0700)
commitf28ea083a3d21abec434f429f1375b3639b234c4
tree546f1ae79709f4f2eaf9edfaa88189d4a8978c2e
parent152c0a976c71386c67c89969acc427dc5cf802b8
igb: use netif_carrier_off earlier when bringing if down

Use netif_carrier_off() first, since that will prevent the stack from
queuing more packets to this IF. This operation is fast, and should
behave much nicer when trying to bring down an interface under load.

Reported-by: Eliezer Tamir <eliezer.tamir@linux.intel.com>
Signed-off-by: Todd Fujinaka <todd.fujinaka@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c