From owner-freebsd-net Fri Nov 16 17:40:30 2001 Delivered-To: freebsd-net@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 4671D37B416; Fri, 16 Nov 2001 17:40:13 -0800 (PST) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id RAA16006; Fri, 16 Nov 2001 17:29:25 -0800 (PST) Date: Fri, 16 Nov 2001 17:29:23 -0800 (PST) From: Julian Elischer To: Garrett Wollman Cc: Peter Wemm , Julian Elischer , current@FreeBSD.ORG, net@FreeBSD.ORG, wollman@FreeBSD.ORG Subject: Re: re-entrancy and the IP stack. In-Reply-To: <200111170108.fAH18d144195@khavrinen.lcs.mit.edu> Message-ID: 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, 16 Nov 2001, Garrett Wollman wrote: > < said: > > > (and anyhow Garrett got rid of the 'static' uses > > of mbufs, not 'travelling' 'per packet' uses..) > > Only because I did not have the time or stomach then to introduce > `struct packet' everywhere. All of the queueing and metadata crap > should be pulled out of mbufs and put into a higher-level object. > It's OK if the higher-level object HAS_A(mbuf), but not IS_A(mbuf). In netgraph, (in -current) we have a packet structure that has links for A) mbufs for the data, and B) optinal metadata. I'd be happy with a HAS_A(mbuf), as long as I have SOMEWHERE, to stash the metadata. > > This is A Lot Of Work, but would seriously clean up the code in a > number of areas. I'm not afraid of the work, but there needs to be a roadmap first. > > As a general rule, though, reentrancy was not a particular concern of > the original design -- that's why there are queues and soft ISRs all > over the place -- because you would blow the kernel stack long before > that became an issue. True, but times change and we have to cross that bridge soon.. > > -GAWollman > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message