]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
i40e/i40evf: assure clean asq status report
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 26 Aug 2015 19:14:14 +0000 (15:14 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:32:16 +0000 (08:32 -0800)
Orabug: 22342532

There was a possibility where the asq_last_status could get through without
update and thus report a previous error.  I don't think we've actually seen
this happen, but this patch will help make sure it doesn't.

Change-ID: I9e33927052a5ee6ea21f80b66d4c4b76c2760b17
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Christopher Pau <christopher.pau@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit 9e1c26e35030aa56057a69514acb17da5e81eb16)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_adminq.c
drivers/net/ethernet/intel/i40evf/i40e_adminq.c

index bd19ed9ef176523d7d00bbd43b9280fe3e49a857..3725d67fbe902e3b2e1511d3d3761a2ba7e21c0a 100644 (file)
@@ -756,6 +756,8 @@ i40e_status i40e_asq_send_command(struct i40e_hw *hw,
                goto asq_send_command_error;
        }
 
+       hw->aq.asq_last_status = I40E_AQ_RC_OK;
+
        val = rd32(hw, hw->aq.asq.head);
        if (val >= hw->aq.num_asq_entries) {
                i40e_debug(hw, I40E_DEBUG_AQ_MESSAGE,
index 6656e01b522a7e1acc6561006265bb69c8f6d6b1..8395053cffa6217c2d4ce1969d6cece19f749dcf 100644 (file)
@@ -696,6 +696,8 @@ i40e_status i40evf_asq_send_command(struct i40e_hw *hw,
                goto asq_send_command_error;
        }
 
+       hw->aq.asq_last_status = I40E_AQ_RC_OK;
+
        val = rd32(hw, hw->aq.asq.head);
        if (val >= hw->aq.num_asq_entries) {
                i40e_debug(hw, I40E_DEBUG_AQ_MESSAGE,