created | 2023-10-08T08:13:05Z |
---|---|
begin | 2023-10-05T00:00:00Z |
end | 2023-10-06T00:00:00Z |
path | src/sys |
commits | 1 |
date | 2023-10-05T11:08:56Z | |||
---|---|---|---|---|
author | bluhm | |||
files | src/sys/net/ifq.c | log | diff | annotate |
src/sys/net/ifq.h | log | diff | annotate | |
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@ |