ether_input() called with shared netlock, but pppoe(4) wants it to be
authormvs <mvs@openbsd.org>
Wed, 29 Jun 2022 09:08:07 +0000 (09:08 +0000)
committermvs <mvs@openbsd.org>
Wed, 29 Jun 2022 09:08:07 +0000 (09:08 +0000)
commit2c8b151e73a27a4aa453519635a9ae1c2a300ec7
tree76330e1bc2c7d9d50d8940d97dc7feb22643d8db
parent38603a7e4f86bf1b28259321a4a4fd562911f29a
ether_input() called with shared netlock, but pppoe(4) wants it to be
exclusive. Do the pppoe(4) input within netisr handler with exclusive
netlok held and remove kernel lock hack from ether_input().

This is the step back, but it makes ether_input() path better then it
is now.

Tested by Hrvoje Popovski.

ok bluhm@ claudio@
sys/net/if.c
sys/net/if_ethersubr.c
sys/net/if_pppoe.c
sys/net/if_pppoe.h
sys/net/netisr.h