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.
This commit is contained in:
thorpej 2020-02-01 21:11:10 +00:00
parent a2249e70e6
commit f76c553cad

View File

@ -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