Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Should be checking ifp->if_flags in bge_init and...



details:   https://anonhg.NetBSD.org/src/rev/0d7ab0c223cb
branches:  trunk
changeset: 369457:0d7ab0c223cb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Aug 19 07:43:54 2022 +0000

description:
Should be checking ifp->if_flags in bge_init and not sc->bge_if_flags.

Spotted by Taylor.

diffstat:

 sys/dev/pci/if_bge.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 06ee7622bb5d -r 0d7ab0c223cb sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Fri Aug 19 00:50:08 2022 +0000
+++ b/sys/dev/pci/if_bge.c      Fri Aug 19 07:43:54 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.377 2022/08/14 09:04:17 skrll Exp $       */
+/*     $NetBSD: if_bge.c,v 1.378 2022/08/19 07:43:54 skrll Exp $       */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.377 2022/08/14 09:04:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.378 2022/08/19 07:43:54 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -5669,7 +5669,7 @@
            ((uint32_t)htons(m[1]) << 16) | htons(m[2]));
 
        /* Enable or disable promiscuous mode as needed. */
-       if (sc->bge_if_flags & IFF_PROMISC)
+       if (ifp->if_flags & IFF_PROMISC)
                BGE_SETBIT(sc, BGE_RX_MODE, BGE_RXMODE_RX_PROMISC);
        else
                BGE_CLRBIT(sc, BGE_RX_MODE, BGE_RXMODE_RX_PROMISC);



Home | Main Index | Thread Index | Old Index