• Mitch Williams's avatar
    i40evf: tweak init timing · 9b32b0b5
    Mitch Williams authored
    This patch tweaks the init timing of the driver just a little bit to
    increase stability on load/unload and SR-IOV enable/disable cycles.
    
    First, run the init_task loop a little quicker in order to reduce
    overall init time.
    
    Second, stagger the start of the init task based on the device's
    PCIe function ID. This lessens the impact on the firmware when a
    whole bunch of VFs are initialized simultaneously, e.g. enabling
    SR-IOV without the VF driver blacklisted. For single VFs assigned
    to VMs this will have no effect as the function ID will always be 0.
    Signed-off-by: default avatarMitch Williams <mitch.a.williams@intel.com>
    Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    9b32b0b5
i40evf_main.c 69.9 KB