Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Convert bge_pending_rxintr_change to a bool (fro...



details:   https://anonhg.NetBSD.org/src/rev/1a4eb16bd97e
branches:  trunk
changeset: 369652:1a4eb16bd97e
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Aug 27 06:32:53 2022 +0000

description:
Convert bge_pending_rxintr_change to a bool (from int)

diffstat:

 sys/dev/pci/if_bge.c    |  8 ++++----
 sys/dev/pci/if_bgevar.h |  4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 6dfd7ae7acb5 -r 1a4eb16bd97e sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Sat Aug 27 06:12:14 2022 +0000
+++ b/sys/dev/pci/if_bge.c      Sat Aug 27 06:32:53 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.383 2022/08/27 06:12:14 skrll Exp $       */
+/*     $NetBSD: if_bge.c,v 1.384 2022/08/27 06:32:53 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.383 2022/08/27 06:12:14 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.384 2022/08/27 06:32:53 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -1263,7 +1263,7 @@
        mutex_enter(sc->sc_core_lock);
        sc->bge_rx_coal_ticks = bge_rx_threshes[lvl].rx_ticks;
        sc->bge_rx_max_coal_bds = bge_rx_threshes[lvl].rx_max_bds;
-       sc->bge_pending_rxintr_change = 1;
+       sc->bge_pending_rxintr_change = true;
        mutex_exit(sc->sc_core_lock);
 }
 
@@ -4773,7 +4773,7 @@
                DELAY(10);
                (void)CSR_READ_4(sc, BGE_HCC_RX_MAX_COAL_BDS);
 
-               sc->bge_pending_rxintr_change = 0;
+               sc->bge_pending_rxintr_change = false;
        }
        bge_handle_events(sc);
 
diff -r 6dfd7ae7acb5 -r 1a4eb16bd97e sys/dev/pci/if_bgevar.h
--- a/sys/dev/pci/if_bgevar.h   Sat Aug 27 06:12:14 2022 +0000
+++ b/sys/dev/pci/if_bgevar.h   Sat Aug 27 06:32:53 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bgevar.h,v 1.37 2022/08/26 07:22:45 skrll Exp $     */
+/*     $NetBSD: if_bgevar.h,v 1.38 2022/08/27 06:32:53 skrll Exp $     */
 /*
  * Copyright (c) 2001 Wind River Systems
  * Copyright (c) 1997, 1998, 1999, 2001
@@ -346,7 +346,7 @@
        uint64_t                bge_if_collisions;
        int                     bge_txcnt;
        struct callout          bge_timeout;
-       int                     bge_pending_rxintr_change;
+       bool                    bge_pending_rxintr_change;
        bool                    bge_detaching;
        SLIST_HEAD(, txdmamap_pool_entry) txdma_list;
        struct txdmamap_pool_entry *txdma[BGE_TX_RING_CNT];



Home | Main Index | Thread Index | Old Index