Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/mac68k/dev Pull up revisions 1.21 (requested b...



details:   https://anonhg.NetBSD.org/src/rev/4996b82b7dd1
branches:  netbsd-1-6
changeset: 530327:4996b82b7dd1
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Jun 17 09:27:08 2003 +0000

description:
Pull up revisions 1.21 (requested by Ben Harris in ticket #1314):
 Don't bring down mc(4) interfaces when they underflow.
 Fixes PR#12088.

diffstat:

 sys/arch/mac68k/dev/if_mc.c |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (59 lines):

diff -r 13ce4ce3a7a6 -r 4996b82b7dd1 sys/arch/mac68k/dev/if_mc.c
--- a/sys/arch/mac68k/dev/if_mc.c       Tue Jun 17 09:18:40 2003 +0000
+++ b/sys/arch/mac68k/dev/if_mc.c       Tue Jun 17 09:27:08 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_mc.c,v 1.19 2002/01/16 06:00:37 thorpej Exp $       */
+/*     $NetBSD: if_mc.c,v 1.19.10.1 2003/06/17 09:27:08 msaitoh Exp $  */
 
 /*-
  * Copyright (c) 1997 David Huang <khym%bga.com@localhost>
@@ -193,7 +193,6 @@
        struct ifreq *ifr;
 
        int     s = splnet(), err = 0;
-       int     temp;
 
        switch (cmd) {
 
@@ -252,9 +251,7 @@
                         * reset the interface to pick up any other changes
                         * in flags
                         */
-                       temp = ifp->if_flags & IFF_UP;
                        mcreset(sc);
-                       ifp->if_flags |= temp;
                        mcstart(ifp);
                }
                break;
@@ -271,9 +268,7 @@
                         * Multicast list has changed; set the hardware
                         * filter accordingly. But remember UP flag!
                         */
-                       temp = ifp->if_flags & IFF_UP;
                        mcreset(sc);
-                       ifp->if_flags |= temp;
                        err = 0;
                }
                break;
@@ -420,7 +415,7 @@
        DELAY(100);
 
        sc->sc_if.if_timer = 0;
-       sc->sc_if.if_flags &= ~(IFF_RUNNING | IFF_UP);
+       sc->sc_if.if_flags &= ~IFF_RUNNING;
 
        splx(s);
        return (0);
@@ -436,12 +431,9 @@
        struct ifnet *ifp;
 {
        struct mc_softc *sc = ifp->if_softc;
-       int temp;
 
        printf("mcwatchdog: resetting chip\n");
-       temp = ifp->if_flags & IFF_UP;
        mcreset(sc);
-       ifp->if_flags |= temp;
 }
 
 /*



Home | Main Index | Thread Index | Old Index