Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jan 2002 15:46:56 +0100 (CET)
From:      Harti Brandt <brandt@fokus.gmd.de>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        net@FreeBSD.ORG
Subject:   Re: interface creation notification
Message-ID:  <20020118154603.W97177-100000@beagle.fokus.gmd.de>
In-Reply-To: <20020118164443.A48141@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020118154603.W97177-100000>