From e63160653f478073255eb42c30b6d03d290668de Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Sat, 23 Dec 2023 10:52:55 +0000 Subject: Backout always allocate per-CPU statistics counters for network interface descriptor. It panics during attach of em(4) device at boot. --- sys/net/if_mpw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/net/if_mpw.c') diff --git a/sys/net/if_mpw.c b/sys/net/if_mpw.c index 2229bcf3c15..934a757bb41 100644 --- a/sys/net/if_mpw.c +++ b/sys/net/if_mpw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mpw.c,v 1.64 2023/12/22 23:01:50 mvs Exp $ */ +/* $OpenBSD: if_mpw.c,v 1.65 2023/12/23 10:52:54 bluhm Exp $ */ /* * Copyright (c) 2015 Rafael Zalamena @@ -115,6 +115,7 @@ mpw_clone_create(struct if_clone *ifc, int unit) sc->sc_dead = 0; + if_counters_alloc(ifp); if_attach(ifp); ether_ifattach(ifp); -- cgit v1.2.3