Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci insert missing ETHER_UNLOCK()



details:   https://anonhg.NetBSD.org/src/rev/c6fc62348d22
branches:  trunk
changeset: 746441:c6fc62348d22
user:      nisimura <nisimura%NetBSD.org@localhost>
date:      Wed Apr 01 04:00:14 2020 +0000

description:
insert missing ETHER_UNLOCK()

diffstat:

 sys/dev/pci/if_kse.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (62 lines):

diff -r b714c134a9bc -r c6fc62348d22 sys/dev/pci/if_kse.c
--- a/sys/dev/pci/if_kse.c      Wed Apr 01 02:38:17 2020 +0000
+++ b/sys/dev/pci/if_kse.c      Wed Apr 01 04:00:14 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_kse.c,v 1.52 2020/04/01 00:07:04 nisimura Exp $     */
+/*     $NetBSD: if_kse.c,v 1.53 2020/04/01 04:00:14 nisimura Exp $     */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.52 2020/04/01 00:07:04 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_kse.c,v 1.53 2020/04/01 04:00:14 nisimura Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -332,7 +332,7 @@
 static int kse_init(struct ifnet *);
 static void kse_stop(struct ifnet *, int);
 static void kse_reset(struct kse_softc *);
-static void kse_set_filter(struct kse_softc *);
+static void kse_set_rcvfilt(struct kse_softc *);
 static int add_rxbuf(struct kse_softc *, int);
 static void rxdrain(struct kse_softc *);
 static int kse_intr(void *);
@@ -726,7 +726,7 @@
                         * Multicast list has changed; set the hardware filter
                         * accordingly.
                         */
-                       kse_set_filter(sc);
+                       kse_set_rcvfilt(sc);
                }
                break;
        }
@@ -831,7 +831,7 @@
        }
 
        /* accept multicast frame or run promisc mode */
-       kse_set_filter(sc);
+       kse_set_rcvfilt(sc);
 
        /* set current media */
        if (sc->sc_chip == 0x8841)
@@ -1085,7 +1085,7 @@
 }
 
 static void
-kse_set_filter(struct kse_softc *sc)
+kse_set_rcvfilt(struct kse_softc *sc)
 {
        struct ether_multistep step;
        struct ether_multi *enm;
@@ -1104,6 +1104,7 @@
        ETHER_LOCK(ec);
        if (ifp->if_flags & IFF_PROMISC) {
                ec->ec_flags |= ETHER_F_ALLMULTI;
+               ETHER_UNLOCK(ec);
                /* run promisc. mode */
                sc->sc_rxc |= RXC_RA;
                goto update;



Home | Main Index | Thread Index | Old Index