From owner-svn-src-head@FreeBSD.ORG Tue Dec 16 11:06:31 2008 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C2641065673; Tue, 16 Dec 2008 11:06:31 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 411DC8FC08; Tue, 16 Dec 2008 11:06:31 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBGB6VEO036057; Tue, 16 Dec 2008 11:06:31 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBGB6VAI036056; Tue, 16 Dec 2008 11:06:31 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200812161106.mBGB6VAI036056@svn.freebsd.org> From: Kip Macy Date: Tue, 16 Dec 2008 11:06:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186178 - head/sys/netinet X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 11:06:31 -0000 Author: kmacy Date: Tue Dec 16 11:06:30 2008 New Revision: 186178 URL: http://svn.freebsd.org/changeset/base/186178 Log: ipfw doesn't use the radix node head lock to protect the radix tree - remove acquisition Modified: head/sys/netinet/ip_fw2.c Modified: head/sys/netinet/ip_fw2.c ============================================================================== --- head/sys/netinet/ip_fw2.c Tue Dec 16 11:04:02 2008 (r186177) +++ head/sys/netinet/ip_fw2.c Tue Dec 16 11:06:30 2008 (r186178) @@ -1827,9 +1827,7 @@ add_table_entry(struct ip_fw_chain *ch, ent->mask.sin_addr.s_addr = htonl(mlen ? ~((1 << (32 - mlen)) - 1) : 0); ent->addr.sin_addr.s_addr = addr & ent->mask.sin_addr.s_addr; IPFW_WLOCK(ch); - RADIX_NODE_HEAD_LOCK(rnh); rn = rnh->rnh_addaddr(&ent->addr, &ent->mask, rnh, (void *)ent); - RADIX_NODE_HEAD_UNLOCK(rnh); if (rn == NULL) { IPFW_WUNLOCK(ch); free(ent, M_IPFW_TBL);