|
@@ -386,7 +386,6 @@ static i40e_status i40e_init_asq(struct i40e_hw *hw)
|
|
|
|
|
|
hw->aq.asq.next_to_use = 0;
|
|
hw->aq.asq.next_to_use = 0;
|
|
hw->aq.asq.next_to_clean = 0;
|
|
hw->aq.asq.next_to_clean = 0;
|
|
- hw->aq.asq.count = hw->aq.num_asq_entries;
|
|
|
|
|
|
|
|
/* allocate the ring memory */
|
|
/* allocate the ring memory */
|
|
ret_code = i40e_alloc_adminq_asq_ring(hw);
|
|
ret_code = i40e_alloc_adminq_asq_ring(hw);
|
|
@@ -404,6 +403,7 @@ static i40e_status i40e_init_asq(struct i40e_hw *hw)
|
|
goto init_adminq_free_rings;
|
|
goto init_adminq_free_rings;
|
|
|
|
|
|
/* success! */
|
|
/* success! */
|
|
|
|
+ hw->aq.asq.count = hw->aq.num_asq_entries;
|
|
goto init_adminq_exit;
|
|
goto init_adminq_exit;
|
|
|
|
|
|
init_adminq_free_rings:
|
|
init_adminq_free_rings:
|
|
@@ -445,7 +445,6 @@ static i40e_status i40e_init_arq(struct i40e_hw *hw)
|
|
|
|
|
|
hw->aq.arq.next_to_use = 0;
|
|
hw->aq.arq.next_to_use = 0;
|
|
hw->aq.arq.next_to_clean = 0;
|
|
hw->aq.arq.next_to_clean = 0;
|
|
- hw->aq.arq.count = hw->aq.num_arq_entries;
|
|
|
|
|
|
|
|
/* allocate the ring memory */
|
|
/* allocate the ring memory */
|
|
ret_code = i40e_alloc_adminq_arq_ring(hw);
|
|
ret_code = i40e_alloc_adminq_arq_ring(hw);
|
|
@@ -463,6 +462,7 @@ static i40e_status i40e_init_arq(struct i40e_hw *hw)
|
|
goto init_adminq_free_rings;
|
|
goto init_adminq_free_rings;
|
|
|
|
|
|
/* success! */
|
|
/* success! */
|
|
|
|
+ hw->aq.arq.count = hw->aq.num_arq_entries;
|
|
goto init_adminq_exit;
|
|
goto init_adminq_exit;
|
|
|
|
|
|
init_adminq_free_rings:
|
|
init_adminq_free_rings:
|