CVSROOT: /cvs Module name: src Changes by: bl...@cvs.openbsd.org 2023/10/05 05:08:56
Modified files: sys/net : ifq.c ifq.h Log message: Protect interface queues with read once and mutex. Reading atomic values need at least read once and writing values should have a mutex. This is what mbuf queues already do. Add READ_ONCE() to ifq and ifiq macros for len and empty. Convert ifq_set_maxlen() to a function that grabs ifq_mtx. OK mvs@