mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
netgraph(4) callouts need to be executed in the network epoch.
This commit is contained in:
parent
56cc8b7595
commit
4c02c20c32
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357557
|
@ -3772,11 +3772,14 @@ ng_send_fn2(node_p node, hook_p hook, item_p pitem, ng_item_fn2 *fn, void *arg1,
|
|||
static void
|
||||
ng_callout_trampoline(void *arg)
|
||||
{
|
||||
struct epoch_tracker et;
|
||||
item_p item = arg;
|
||||
|
||||
NET_EPOCH_ENTER(et);
|
||||
CURVNET_SET(NGI_NODE(item)->nd_vnet);
|
||||
ng_snd_item(item, 0);
|
||||
CURVNET_RESTORE();
|
||||
NET_EPOCH_EXIT(et);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue