From owner-freebsd-net Tue Apr 25 23:47:37 2000 Delivered-To: freebsd-net@freebsd.org Received: from urban.iinet.net.au (urban.iinet.net.au [203.59.24.231]) by hub.freebsd.org (Postfix) with ESMTP id 02B4537BCEE; Tue, 25 Apr 2000 23:47:32 -0700 (PDT) (envelope-from julian@elischer.org) Received: from popserver-02.iinet.net.au (popserver-02.iinet.net.au [203.59.24.148]) by urban.iinet.net.au (8.8.7/8.8.7) with ESMTP id OAA13917; Wed, 26 Apr 2000 14:47:27 +0800 Received: from jules.elischer.org (reggae-09-116.nv.iinet.net.au [203.59.67.116]) by popserver-02.iinet.net.au (8.9.3/8.9.3) with SMTP id OAA02734; Wed, 26 Apr 2000 14:47:15 +0800 Message-ID: <390690B8.4487EB71@elischer.org> Date: Tue, 25 Apr 2000 23:46:16 -0700 From: Julian Elischer <julian@elischer.org> X-Mailer: Mozilla 3.04Gold (X11; I; FreeBSD 5.0-CURRENT i386) MIME-Version: 1.0 To: Archie Cobbs <archie@whistle.com> Cc: "Louis A. Mamakos" <louie@TransSys.COM>, luigi@FreeBSD.ORG, remy@boostworks.com, csg@waterspout.com, pavel@alum.mit.edu, nsayer@sftw.com, freebsd-net@FreeBSD.ORG Subject: Re: Proposal for ethernet, bridging, netgraph References: <200004260229.TAA56138@bubba.whistle.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Archie Cobbs wrote: > > Louis A. Mamakos writes: > > > > Now that mbufs are 256 bytes long, is this getting to be too much data > > to stick on the kernel stack? It seems like it's not a problem now, but > > this code is now going to be invoked deeper in the stack than before. > > > > If this code is running at splnet(), then it ought to be safe to just > > have a static mbuf laying about for this purpose, rather than allocating > > a local on the kernel stack. > > Good point.. we could just use a struct m_hdr.. and in any case > it should be able to be a static variable.. we're at splnet(). i think it is bad style to do a static one.. we cannot know what will happen WRT SMP in the near future and we are setting ourselves up for future problems if we do that. I think we could get away with a m_hdr. -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Perth v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message