Grab the non-exclusive net lock to read-only traverse the interface list
authorkn <kn@openbsd.org>
Fri, 21 Oct 2022 14:20:03 +0000 (14:20 +0000)
committerkn <kn@openbsd.org>
Fri, 21 Oct 2022 14:20:03 +0000 (14:20 +0000)
commit7e119dafdd61b2a9d6ea84db9e635de73872d169
treebda1debe7e73607c86cbe651a1a3713c05a1f377
parent4ba797c29f641f429986a780c6a761661ba4ed99
Grab the non-exclusive net lock to read-only traverse the interface list

Destroying lo(4) interfaces checks for other interfaces in the same
rdomain(4) first which does not modify anything, so allow other readers.

All interface ioctl(2)s currently run with the kernel lock held, so this
should not make a real difference...

OK mvs
sys/net/if_loop.c