From owner-cvs-src-old@FreeBSD.ORG Tue Aug 25 20:21:34 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AD631065690 for ; Tue, 25 Aug 2009 20:21:34 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6E9B78FC1C for ; Tue, 25 Aug 2009 20:21:34 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7PKLYNU007323 for ; Tue, 25 Aug 2009 20:21:34 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7PKLYC7007322 for cvs-src-old@freebsd.org; Tue, 25 Aug 2009 20:21:34 GMT (envelope-from rwatson@repoman.freebsd.org) Message-Id: <200908252021.n7PKLYC7007322@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to rwatson@repoman.freebsd.org using -f From: Robert Watson Date: Tue, 25 Aug 2009 20:21:16 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/net if.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 20:21:34 -0000 rwatson 2009-08-25 20:21:16 UTC FreeBSD src repository Modified files: sys/net if.c Log: SVN rev 196553 on 2009-08-25 20:21:16Z by rwatson Break out allocation of new ifindex values from if_alloc() and if_vmove(), and centralize in a single function ifindex_alloc(). Assert the IFNET_WLOCK, and add missing IFNET_WLOCK in if_alloc(). This does not close all known races in this code. Reviewed by: bz MFC after: 3 days Revision Changes Path 1.364 +42 -34 src/sys/net/if.c