mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Ensure the ring state is also blanked upon reset, otherwise
duplicate rx events get handled during reset paths. Submitted by: Matthew Dillion <dillon@apollo.backplane.com> Obtained from: DragonflyBSD
This commit is contained in:
parent
0d3d0cc358
commit
413bae20bb
1 changed files with 2 additions and 0 deletions
|
|
@ -884,7 +884,9 @@ iwm_reset_rx_ring(struct iwm_softc *sc, struct iwm_rx_ring *ring)
|
|||
(void) iwm_pcie_rx_stop(sc);
|
||||
iwm_nic_unlock(sc);
|
||||
}
|
||||
/* Reset the ring state */
|
||||
ring->cur = 0;
|
||||
memset(sc->rxq.stat, 0, sizeof(*sc->rxq.stat));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue