diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index 2e83fdef8e87..b0b237af6e6c 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -1428,6 +1428,7 @@ pf_send(struct pf_send_entry *pfse) void pf_intr(void *v) { + struct epoch_tracker et; struct pf_send_head queue; struct pf_send_entry *pfse, *next; @@ -1438,6 +1439,8 @@ pf_intr(void *v) STAILQ_INIT(&V_pf_sendqueue); PF_SENDQ_UNLOCK(); + NET_EPOCH_ENTER(et); + STAILQ_FOREACH_SAFE(pfse, &queue, pfse_next, next) { switch (pfse->pfse_type) { #ifdef INET @@ -1464,6 +1467,7 @@ pf_intr(void *v) } free(pfse, M_PFTEMP); } + NET_EPOCH_EXIT(et); CURVNET_RESTORE(); }