]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ng_ether: Enter NET_EPOCH where required
authorKristof Provost <kp@FreeBSD.org>
Wed, 2 Sep 2020 11:49:22 +0000 (11:49 +0000)
committerKristof Provost <kp@FreeBSD.org>
Wed, 2 Sep 2020 11:49:22 +0000 (11:49 +0000)
commit51e805c43c6f9ab096e5ef8a4e79d515a2b4cbb6
tree3cf227836c4b881d2cf040425c97943ed6076de9
parent3bebdc0564eb597ca11de52fff89308fb4a7edce
ng_ether: Enter NET_EPOCH where required

We must enter NET_EPOCH before calling ether_output_frame(). Several of the
functions it calls (pfil_run_hooks, if_transmit) expect to be running in the
NET_EPOCH.

While here remove an unneeded EPOCH entry (which wasn't wide enough to cover
BRIDGE_INPUT).

PR: 248958
Reviewed by: glebius, bz (previous version), melifaro (previous version)
Tested by: manu
Differential Revision: https://reviews.freebsd.org/D26226
sys/netgraph/ng_ether.c
sys/netgraph/ng_pppoe.c