revert r1.673: replace SRP with SMR in the if_idxmap.
authordlg <dlg@openbsd.org>
Wed, 9 Nov 2022 22:15:50 +0000 (22:15 +0000)
committerdlg <dlg@openbsd.org>
Wed, 9 Nov 2022 22:15:50 +0000 (22:15 +0000)
commit74e5fbe8e166d85c35f4e134064a22f19cac6d6b
tree8b3c3c4675117c4510837180c1c5e51c464f21ba
parentc39c0495bee28a36031d12a0b2887f99884e9d2f
revert r1.673: replace SRP with SMR in the if_idxmap.

if the map has to be reallocated during boot, there's an smr_barrier
waiting for the old map to become unused. that barrier ends up
waiting for cpus that aren't running yet because we haven't finished
booting yet, so boot gets stuck.

found by hrvoje popovski
sys/net/if.c