igbvf: use netif_carrier_off earlier when bringing if down
authorTodd Fujinaka <todd.fujinaka@intel.com>
Sat, 21 Mar 2015 00:41:54 +0000 (17:41 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 21 Mar 2015 00:45:12 +0000 (17:45 -0700)
commit784401bfc0b22b5521492047884e8d834de4dfab
tree361d74098296cab17a2727d79e39ed61dd43d68d
parentf28ea083a3d21abec434f429f1375b3639b234c4
igbvf: 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/igbvf/netdev.c