Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/ic Define/assert IFEF_START_MPSAFE
details: https://anonhg.NetBSD.org/src/rev/64d34f37608f
branches: nick-nhusb
changeset: 334532:64d34f37608f
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Jul 15 06:35:27 2016 +0000
description:
Define/assert IFEF_START_MPSAFE
diffstat:
sys/dev/ic/dwc_gmac.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 5ab6ae965e34 -r 64d34f37608f sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c Sat Jul 09 20:24:48 2016 +0000
+++ b/sys/dev/ic/dwc_gmac.c Fri Jul 15 06:35:27 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.28.2.8 2016/07/09 20:25:02 skrll Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.28.2.9 2016/07/15 06:35:27 skrll 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.28.2.8 2016/07/09 20:25:02 skrll Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.28.2.9 2016/07/15 06:35:27 skrll Exp $");
/* #define DWC_GMAC_DEBUG 1 */
@@ -222,6 +222,7 @@
ifp->if_softc = sc;
strlcpy(ifp->if_xname, device_xname(sc->sc_dev), IFNAMSIZ);
ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+ ifp->if_extflags = IFEF_START_MPSAFE;
ifp->if_ioctl = dwc_gmac_ioctl;
ifp->if_start = dwc_gmac_start;
ifp->if_init = dwc_gmac_init;
@@ -824,6 +825,7 @@
dwc_gmac_start(struct ifnet *ifp)
{
struct dwc_gmac_softc *sc = ifp->if_softc;
+ KASSERT(ifp->if_extflags & IFEF_START_MPSAFE);
mutex_enter(sc->sc_lock);
if (!sc->sc_stopping) {
Home |
Main Index |
Thread Index |
Old Index