mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
i40e: clear qtx_head before enabling Tx queue
Make sure the "new" qtx_head[q] register is cleared before enabling the Tx queue. Change-ID: I0c7a12815e343a5ae68807af172a35d6c6857935 Signed-off-by: Shannon Nelson <shannon.nelson@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
3126dcb736
commit
c5c9eb9e78
1 changed files with 4 additions and 2 deletions
|
@ -3008,11 +3008,13 @@ static int i40e_vsi_control_tx(struct i40e_vsi *vsi, bool enable)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* turn on/off the queue */
|
/* turn on/off the queue */
|
||||||
if (enable)
|
if (enable) {
|
||||||
|
wr32(hw, I40E_QTX_HEAD(pf_q), 0);
|
||||||
tx_reg |= I40E_QTX_ENA_QENA_REQ_MASK |
|
tx_reg |= I40E_QTX_ENA_QENA_REQ_MASK |
|
||||||
I40E_QTX_ENA_QENA_STAT_MASK;
|
I40E_QTX_ENA_QENA_STAT_MASK;
|
||||||
else
|
} else {
|
||||||
tx_reg &= ~I40E_QTX_ENA_QENA_REQ_MASK;
|
tx_reg &= ~I40E_QTX_ENA_QENA_REQ_MASK;
|
||||||
|
}
|
||||||
|
|
||||||
wr32(hw, I40E_QTX_ENA(pf_q), tx_reg);
|
wr32(hw, I40E_QTX_ENA(pf_q), tx_reg);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue