Push the kernel lock down into arpresolve(). We still need it to
authorbluhm <bluhm@openbsd.org>
Mon, 27 Jun 2022 20:47:10 +0000 (20:47 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 27 Jun 2022 20:47:10 +0000 (20:47 +0000)
commit32b4d8f21105c3409933ef802d7e28b0c0ca8f4c
tree7a1d3c3e5deeffc35745986491c6938d9041f9eb
parentb83d90f0d5e8a270c46d6c99c6609668bd21a378
Push the kernel lock down into arpresolve().  We still need it to
prevent concurrent access to rt_llinfo from rtrequest_delete().
But the common case, when the MAC address is already known, works
without lock.
tested by Hrvoje Popovski; OK mvs@
sys/net/if_ethersubr.c
sys/netinet/if_ether.c