diff options
author | 2017-02-05 16:23:38 +0000 | |
---|---|---|
committer | 2017-02-05 16:23:38 +0000 | |
commit | 599d0588cf7b82eb0f4bc20b52af288d39ecc976 (patch) | |
tree | c3169b60ee3060be047b1c43c481aa36a1a3dfc0 /sys/netinet6/ip6_input.c | |
parent | Use percpu counters for ip6stat (diff) | |
download | wireguard-openbsd-599d0588cf7b82eb0f4bc20b52af288d39ecc976.tar.xz wireguard-openbsd-599d0588cf7b82eb0f4bc20b52af288d39ecc976.zip |
Always allocate counters memory using type M_COUNTERS.
This makes the API simpler, and is probably more useful than spreading
counters memory other several types, making it harder to track.
Prodded by mpi, ok mpi@ stsp@
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r-- | sys/netinet6/ip6_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index f1f902107e5..d306e043c31 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip6_input.c,v 1.176 2017/02/05 16:04:14 jca Exp $ */ +/* $OpenBSD: ip6_input.c,v 1.177 2017/02/05 16:23:38 jca Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -159,7 +159,7 @@ ip6_init(void) mq_init(&ip6send_mq, 64, IPL_SOFTNET); - ip6counters = counters_alloc(ip6s_ncounters, M_COUNTERS); + ip6counters = counters_alloc(ip6s_ncounters); } /* |