Source-Changes-HG archive

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

[src/trunk]: src/sys/net Flip the switch to the per-cpu implementation in <ne...



details:   https://anonhg.NetBSD.org/src/rev/8eb0986dd9f1
branches:  trunk
changeset: 744453:8eb0986dd9f1
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Feb 01 21:11:10 2020 +0000

description:
Flip the switch to the per-cpu implementation in <net/if_stats.h>.  Leave
the conditional in place for a time in case serious problems are discovered,
so that the Old Way can be re-enabled quickly.  After some time, the Old
Way will be removed completely.

diffstat:

 sys/net/if.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 72fcb9042659 -r 8eb0986dd9f1 sys/net/if.h
--- a/sys/net/if.h      Sat Feb 01 20:56:16 2020 +0000
+++ b/sys/net/if.h      Sat Feb 01 21:11:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.h,v 1.278 2020/01/29 03:16:28 thorpej Exp $ */
+/*     $NetBSD: if.h,v 1.279 2020/02/01 21:11:10 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -63,6 +63,12 @@
 #ifndef _NET_IF_H_
 #define _NET_IF_H_
 
+/*
+ * Temporary, to allow for a quick disable if problems are discovered
+ * during a transition period.
+ */
+#define        __IF_STATS_PERCPU
+
 #if !defined(_KERNEL) && !defined(_STANDALONE)
 #include <stdbool.h>
 #endif



Home | Main Index | Thread Index | Old Index