summaryrefslogtreecommitdiff
path: root/sys/net/if_mpe.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2023-12-23 10:52:55 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2023-12-23 10:52:55 +0000
commite63160653f478073255eb42c30b6d03d290668de (patch)
treeb69397e9648760e486455a5ed0f4cecdcdd614c3 /sys/net/if_mpe.c
parent08d67429a797cd75864df3d09e54600e0c0223d6 (diff)
Backout always allocate per-CPU statistics counters for network
interface descriptor. It panics during attach of em(4) device at boot.
Diffstat (limited to 'sys/net/if_mpe.c')
-rw-r--r--sys/net/if_mpe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_mpe.c b/sys/net/if_mpe.c
index 447570be717..a72347b4c3c 100644
--- a/sys/net/if_mpe.c
+++ b/sys/net/if_mpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_mpe.c,v 1.103 2023/12/22 23:01:50 mvs Exp $ */
+/* $OpenBSD: if_mpe.c,v 1.104 2023/12/23 10:52:54 bluhm Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@spootnik.org>
@@ -119,6 +119,7 @@ mpe_clone_create(struct if_clone *ifc, int unit)
if_attach(ifp);
if_alloc_sadl(ifp);
+ if_counters_alloc(ifp);
#if NBPFILTER > 0
bpfattach(&ifp->if_bpf, ifp, DLT_LOOP, sizeof(u_int32_t));