Skip to content
  • Mitch Williams's avatar
    i40evf: set flags before sending message · fc86a970
    Mitch Williams authored
    
    
    In some circumstances, the firmware could beat us to the punch, and the
    reply from the PF would come back before we were able to properly modify
    the aq_pending and aq_required flags. This would mess up the flags and
    put the driver in an indeterminate state, much like Schrödinger's cat.
    However, unlike the cat, the driver is definitely dead.
    
    To fix this, simply set the flags before sending the request to the AQ.
    This way, it won't matter if the interrupt comes back too soon.
    
    Change-ID: I9784655e475675ebcb3140cc7f36f4a96aaadce5
    Signed-off-by: default avatarMitch Williams <mitch.a.williams@intel.com>
    Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
    fc86a970