Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2009 15:45:38 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r200846 - user/luigi/ipfw3-head/sys/netinet/ipfw
Message-ID:  <200912221545.nBMFjcKj068402@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Tue Dec 22 15:45:38 2009
New Revision: 200846
URL: http://svn.freebsd.org/changeset/base/200846

Log:
  add a comment on locking

Modified:
  user/luigi/ipfw3-head/sys/netinet/ipfw/ip_fw_table.c

Modified: user/luigi/ipfw3-head/sys/netinet/ipfw/ip_fw_table.c
==============================================================================
--- user/luigi/ipfw3-head/sys/netinet/ipfw/ip_fw_table.c	Tue Dec 22 15:41:58 2009	(r200845)
+++ user/luigi/ipfw3-head/sys/netinet/ipfw/ip_fw_table.c	Tue Dec 22 15:45:38 2009	(r200846)
@@ -34,6 +34,9 @@ __FBSDID("$FreeBSD$");
  * keys are network prefixes (addr/masklen), and values are integers.
  * As a degenerate case we can interpret keys as 32-bit integers
  * (with a /32 mask).
+ *
+ * The table is protected by the IPFW lock even for manipulation coming
+ * from userland, because operations are typically fast.
  */
 
 #if !defined(KLD_MODULE)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912221545.nBMFjcKj068402>