CVSROOT: /cvs Module name: src Changes by: bl...@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@