mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix logic error. Due to the bug, it incorrectly checked TXQ status
which in turn can leave TXQ active. Submitted by: Brad ( brad <> comstyle dot com ) MFC after: 3 days
This commit is contained in:
parent
d77e2e42b3
commit
f69ddfbb5f
1 changed files with 1 additions and 1 deletions
|
|
@ -3556,7 +3556,7 @@ alc_stop_queue(struct alc_softc *sc)
|
|||
}
|
||||
/* Disable TxQ. */
|
||||
reg = CSR_READ_4(sc, ALC_TXQ_CFG);
|
||||
if ((reg & TXQ_CFG_ENB) == 0) {
|
||||
if ((reg & TXQ_CFG_ENB) != 0) {
|
||||
reg &= ~TXQ_CFG_ENB;
|
||||
CSR_WRITE_4(sc, ALC_TXQ_CFG, reg);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue