• Eliezer Tamir's avatar
    ixgb: call netif_carrier_off early on down · d9d888b8
    Eliezer Tamir authored
    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: default avatarEliezer Tamir <eliezer.tamir@linux.intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    d9d888b8
ixgb_main.c 62.5 KB