Index: tcp_var.h =================================================================== RCS file: /cvs/src/sys/netinet/tcp_var.h,v diff -u -p -r1.192 tcp_var.h --- tcp_var.h 8 Jun 2025 17:06:19 -0000 1.192 +++ tcp_var.h 15 Jun 2025 04:17:33 -0000 @@ -640,20 +640,26 @@ extern struct cpumem *tcpcounters; static inline void tcpstat_inc(enum tcpstat_counters c) { + int s = splnet(); counters_inc(tcpcounters, c); + splx(s); } static inline void tcpstat_add(enum tcpstat_counters c, uint64_t v) { + int s = splnet(); counters_add(tcpcounters, c, v); + splx(s); } static inline void tcpstat_pkt(enum tcpstat_counters pcounter, enum tcpstat_counters bcounter, uint64_t v) { + int s = splnet(); counters_pkt(tcpcounters, pcounter, bcounter, v); + splx(s); } extern uint64_t tcp_starttime;