Introduce a mutex per inpcb to serialize access to socket receive
authorbluhm <bluhm@openbsd.org>
Sun, 21 Aug 2022 11:44:53 +0000 (11:44 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 21 Aug 2022 11:44:53 +0000 (11:44 +0000)
commit53fadfdcf4c145f77ce6badbc5a8706fe943c543
tree8cd8fe952ebd59ad0274b4f86bcd1dd574272c9f
parent87758528bd9bbe90247a6a52770b369db5242058
Introduce a mutex per inpcb to serialize access to socket receive
buffer.  Later it may be used to protect more of the PCB or socket.
In divert input replace the kernel lock with this mutex.
OK mvs@
sys/netinet/in_pcb.c
sys/netinet/in_pcb.h
sys/netinet/ip_divert.c
sys/netinet6/ip6_divert.c