• Mitch Williams's avatar
    i40evf: reset on module unload · f4a71881
    Mitch Williams authored
    When the module is being unloaded, don't wait for the PF to politely
    handle all of our admin queue requests, as that might take forever with
    a lot of VFs enabled. Instead, just stop everything and request a VF
    reset.
    
    When the original shutdown code was written, VF resets were unreliable,
    so we avoided them. But with production hardware and firmware, and the
    1.x PF driver, this is no longer the case.
    
    This fixes a potential multi-minute delay on driver unload, VF disable,
    or system shutdown.
    
    Change-ID: Ib43d6d860ef6b9b8f26e8dce0615a0302608c7d9
    Signed-off-by: default avatarMitch Williams <mitch.a.williams@intel.com>
    Tested-by: default avatarJim Young <james.m.young@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    f4a71881
i40evf_main.c 66.1 KB