aboutsummaryrefslogtreecommitdiff
path: root/sys/net/radix.c
diff options
context:
space:
mode:
authorJeffrey Hsu <hsu@FreeBSD.org>2002-12-24 03:03:39 +0000
committerJeffrey Hsu <hsu@FreeBSD.org>2002-12-24 03:03:39 +0000
commit956b0b653c46d162d8f96ef9f2e6a7cd71e7419a (patch)
tree5e53dfd4f16f3a5c2080f2ce73aed007b1be63a1 /sys/net/radix.c
parent6b010ec682346b2b02978820f1c07d0a9bccf952 (diff)
downloadsrc-956b0b653c46d162d8f96ef9f2e6a7cd71e7419a.tar.gz
src-956b0b653c46d162d8f96ef9f2e6a7cd71e7419a.zip
SMP locking for radix nodes.
Notes
Notes: svn path=/head/; revision=108250
Diffstat (limited to 'sys/net/radix.c')
-rw-r--r--sys/net/radix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/radix.c b/sys/net/radix.c
index e1742f39cccd..f6cdadb5f594 100644
--- a/sys/net/radix.c
+++ b/sys/net/radix.c
@@ -1024,6 +1024,7 @@ rn_inithead(head, off)
if (rnh == 0)
return (0);
Bzero(rnh, sizeof (*rnh));
+ RADIX_NODE_HEAD_LOCK_INIT(rnh);
*head = rnh;
t = rn_newpair(rn_zeros, off, rnh->rnh_nodes);
ttt = rnh->rnh_nodes + 2;