Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Clear IFF_RUNNING | IFF_OACTIVE when stopping int...



details:   https://anonhg.NetBSD.org/src/rev/3631384877e2
branches:  trunk
changeset: 323524:3631384877e2
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon Jun 18 22:57:18 2018 +0000

description:
Clear IFF_RUNNING | IFF_OACTIVE when stopping interface.

diffstat:

 sys/dev/ic/dwc_gmac.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 1b6a801c7a09 -r 3631384877e2 sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c     Mon Jun 18 20:20:27 2018 +0000
+++ b/sys/dev/ic/dwc_gmac.c     Mon Jun 18 22:57:18 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.47 2018/06/17 13:12:25 jmcneill Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.48 2018/06/18 22:57:18 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.47 2018/06/17 13:12:25 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.48 2018/06/18 22:57:18 jmcneill Exp $");
 
 /* #define     DWC_GMAC_DEBUG  1 */
 
@@ -926,6 +926,8 @@
        mii_down(&sc->sc_mii);
        dwc_gmac_reset_tx_ring(sc, &sc->sc_txq);
        dwc_gmac_reset_rx_ring(sc, &sc->sc_rxq);
+
+       ifp->if_flags &= ~(IFF_RUNNING | IFF_OACTIVE);
 }
 
 /*



Home | Main Index | Thread Index | Old Index