Page MenuHomeFreeBSD

D33242.diff
No OneTemporary

D33242.diff

diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -316,6 +316,7 @@
struct pf_kstate *);
#define PFSYNC_MAX_BULKTRIES 12
+#define PFSYNC_DEFER_TIMEOUT ((20 * hz) / 1000)
VNET_DEFINE(struct if_clone *, pfsync_cloner);
#define V_pfsync_cloner VNET(pfsync_cloner)
@@ -1769,7 +1770,7 @@
TAILQ_INSERT_TAIL(&b->b_deferrals, pd, pd_entry);
callout_init_mtx(&pd->pd_tmo, &b->b_mtx, CALLOUT_RETURNUNLOCKED);
- callout_reset(&pd->pd_tmo, 10, pfsync_defer_tmo, pd);
+ callout_reset(&pd->pd_tmo, PFSYNC_DEFER_TIMEOUT, pfsync_defer_tmo, pd);
pfsync_push(b);

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 5:46 AM (14 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15585821
Default Alt Text
D33242.diff (659 B)

Event Timeline