Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Fwd: nsh needs to adapt to mbuf.h changes
To:
Tom Smyth <tom.smyth@wirelessconnect.eu>
Cc:
ports <ports@openbsd.org>, Stefan Sperling <stsp@stsp.name>
Date:
Wed, 25 Jun 2025 01:14:32 +0100

Download raw body.

Thread
quick heads-up, this change in base needs nsh to catch up. I didn't
check but I assume the existing code is going to be similar enough to
what's in usr.bin/netstat/mbuf.c that it should be easy to adapt.


----- Forwarded message from Alexander Bluhm <bluhm@openbsd.org> -----

From: Alexander Bluhm <bluhm@openbsd.org>
Date: Sun, 22 Jun 2025 05:34:40 -0600 (MDT)
To: source-changes@cvs.openbsd.org
Subject: CVS: cvs.openbsd.org: src

CVSROOT:	/cvs
Module name:	src
Changes by:	bluhm@cvs.openbsd.org	2025/06/22 05:34:40

Modified files:
	sys/kern       : kern_sysctl.c uipc_mbuf.c uipc_mbuf2.c 
	sys/sys        : mbuf.h 
	usr.bin/netstat: mbuf.c 

Log message:
Protect mbuf statistics counter with splnet.

MP safe conters with per CPU memory still need spl protection when
called from interrupt context.  Some increments of mbuf counters
had that, others did not.  Introduce inline function mbstat_inc()
and enum counter types for mbufs, like we have elsewhere.  With
that mbufs counter increment takes splnet() everywhere.

OK mvs@ dlg@


----- End forwarded message -----