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/5332b5d8d02c
branches: trunk
changeset: 320000:5332b5d8d02c
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 88495dd74a67 -r 5332b5d8d02c 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