svn commit: r357769 - head/sys/netpfil/ipfw

Hans Petter Selasky hselasky at FreeBSD.org
Tue Feb 11 18:16:30 UTC 2020


Author: hselasky
Date: Tue Feb 11 18:16:29 2020
New Revision: 357769
URL: https://svnweb.freebsd.org/changeset/base/357769

Log:
  Add missing EPOCH(9) wrapper in ipfw(8).
  
  Backtrace:
  panic()
  ip_output()
  dyn_tick()
  softclock_call_cc()
  softclock()
  ithread_loop()
  
  Differential Revision:	https://reviews.freebsd.org/D23599
  Reviewed by:	glebius@ and ae@
  Found by:	mmacy@
  Reported by:	jmd@
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/netpfil/ipfw/ip_fw_dynamic.c

Modified: head/sys/netpfil/ipfw/ip_fw_dynamic.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw_dynamic.c	Tue Feb 11 18:15:57 2020	(r357768)
+++ head/sys/netpfil/ipfw/ip_fw_dynamic.c	Tue Feb 11 18:16:29 2020	(r357769)
@@ -2718,6 +2718,7 @@ dyn_grow_hashtable(struct ip_fw_chain *chain, uint32_t
 static void
 dyn_tick(void *vnetx)
 {
+	struct epoch_tracker et;
 	uint32_t buckets;
 
 	CURVNET_SET((struct vnet *)vnetx);
@@ -2740,10 +2741,12 @@ dyn_tick(void *vnetx)
 	if (V_dyn_keepalive != 0 &&
 	    V_dyn_keepalive_last + V_dyn_keepalive_period <= time_uptime) {
 		V_dyn_keepalive_last = time_uptime;
+		NET_EPOCH_ENTER(et);
 		dyn_send_keepalive_ipv4(&V_layer3_chain);
 #ifdef INET6
 		dyn_send_keepalive_ipv6(&V_layer3_chain);
 #endif
+		NET_EPOCH_EXIT(et);
 	}
 	/*
 	 * Check if we need to resize the hash:


More information about the svn-src-head mailing list