From owner-freebsd-net Fri Jan 18 6:47:14 2002 Delivered-To: freebsd-net@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id 3E76F37B41F; Fri, 18 Jan 2002 06:46:59 -0800 (PST) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.11.6/8.11.6) with ESMTP id g0IEkuR23965; Fri, 18 Jan 2002 15:46:56 +0100 (MET) Date: Fri, 18 Jan 2002 15:46:56 +0100 (CET) From: Harti Brandt To: Ruslan Ermilov Cc: net@FreeBSD.ORG Subject: Re: interface creation notification In-Reply-To: <20020118164443.A48141@sunbay.com> Message-ID: <20020118154603.W97177-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 18 Jan 2002, Ruslan Ermilov wrote: RE>On Fri, Jan 18, 2002 at 03:23:09PM +0100, Harti Brandt wrote: RE>> On Fri, 18 Jan 2002, Ruslan Ermilov wrote: ... RE>> RE>I've just committed this feature. RE> RE>> Just one question: RE>> is there any locking that does a user process prevent from seeing the RE>> interface still on the interface list after the message is sent, but RE>> before the interface is removed from the list? (I mean on an SMP system). RE>> The DEPARTURE message is sent before the interface is unlinked from the RE>> list. RE>> RE>In -STABLE, splnet() does the necessary locking. In SMPng'ed -CURRENT, RE>I do not believe any ifnet-related mutexes code was committed. I think RE>that the locking is done with Giant at the moment, but I may be wrong. RE>In any case, the code I have committed does not make things any worse, RE>as if_detach() should be able to modify the ifnet list of interfaces, RE>and any ifnet-traversing code should block if the modification is in RE>progress. Ok, yes. harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.fhg.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message