Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add missing read to count Circuit Breaker Rx Dro...



details:   https://anonhg.NetBSD.org/src/rev/a7dab423f401
branches:  trunk
changeset: 376587:a7dab423f401
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Jun 23 05:36:28 2023 +0000

description:
Add missing read to count Circuit Breaker Rx Dropped Packet correctly.

diffstat:

 sys/dev/pci/if_wm.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 45dd4432fc4e -r a7dab423f401 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c       Fri Jun 23 05:21:10 2023 +0000
+++ b/sys/dev/pci/if_wm.c       Fri Jun 23 05:36:28 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_wm.c,v 1.781 2023/05/11 07:47:14 msaitoh Exp $      */
+/*     $NetBSD: if_wm.c,v 1.782 2023/06/23 05:36:28 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -82,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.781 2023/05/11 07:47:14 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.782 2023/06/23 05:36:28 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_if_wm.h"
@@ -6588,6 +6588,8 @@ wm_update_stats(struct wm_softc *sc)
                        WM_EVCNT_ADD(&sc->sc_ev_tsctfc,
                            CSR_READ(sc, WMREG_TSCTFC));
                else {
+                       WM_EVCNT_ADD(&sc->sc_ev_cbrdpc,
+                           CSR_READ(sc, WMREG_CBRDPC));
                        WM_EVCNT_ADD(&sc->sc_ev_cbrmpc,
                            CSR_READ(sc, WMREG_CBRMPC));
                }



Home | Main Index | Thread Index | Old Index