Author: adrian
Date: Fri Sep 18 17:39:31 2015
New Revision: 287965
URL: https://svnweb.freebsd.org/changeset/base/287965

Log:
  Ensure the ring state is also blanked upon reset, otherwise
  duplicate rx events get handled during reset paths.
  
  Submitted by: Matthew Dillion <[email protected]>
  Obtained from:        DragonflyBSD

Modified:
  head/sys/dev/iwm/if_iwm.c

Modified: head/sys/dev/iwm/if_iwm.c
==============================================================================
--- head/sys/dev/iwm/if_iwm.c   Fri Sep 18 17:32:22 2015        (r287964)
+++ head/sys/dev/iwm/if_iwm.c   Fri Sep 18 17:39:31 2015        (r287965)
@@ -884,7 +884,9 @@ iwm_reset_rx_ring(struct iwm_softc *sc, 
                (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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to