From owner-freebsd-net@FreeBSD.ORG Thu May 20 14:33:55 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C82D16A4CE for ; Thu, 20 May 2004 14:33:55 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D68E43D48 for ; Thu, 20 May 2004 14:33:55 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <200405202133540130053b48e>; Thu, 20 May 2004 21:33:55 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id OAA75111; Thu, 20 May 2004 14:33:53 -0700 (PDT) Date: Thu, 20 May 2004 14:33:52 -0700 (PDT) From: Julian Elischer To: Dmitri Denissov In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: protecting netgraph calls from outside of the network context X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2004 21:33:55 -0000 Ha! funny you should ask that exactly now.. I was just discussing this with Robert Watson.. The answer is "it depends on what you want to do". What DO you want to do and what does your node do? netgraph has internal locking in 5.x that you need to interact with but it should be pretty transparrent depending on what you are doing.. On Thu, 20 May 2004, Dmitri Denissov wrote: > Hi, > > Currently netgraph code uses splnet/splx to protect timeout calls. > This doesn't work with 5.2 SMP kernel. What is the proper method > here for a custom netgraph node? Is the Giant lock only the way? > > Thanks > > -- > Dmitri > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >