svn commit: r200846 - user/luigi/ipfw3-head/sys/netinet/ipfw
Luigi Rizzo
luigi at FreeBSD.org
Tue Dec 22 15:45:39 UTC 2009
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)
More information about the svn-src-user
mailing list