]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: set flags before sending message
authorMitch Williams <mitch.a.williams@intel.com>
Wed, 4 Jun 2014 20:41:38 +0000 (20:41 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 1 Jul 2014 06:46:11 +0000 (23:46 -0700)
commitc9c0f96152eccd5fdfd93a188d3d9d7c4a950530
tree55b6cf761e4955ad98054ec3490be4ab624e6622
parentd0bf6050ffae2e5f7c991d0d93a679bb2690afc0
i40evf: set flags before sending message

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: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c