From owner-freebsd-hackers Thu Jul 26 11: 1: 2 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from technokratis.com (modemcable052.174-202-24.mtl.mc.videotron.ca [24.202.174.52]) by hub.freebsd.org (Postfix) with ESMTP id CF7FB37B405 for ; Thu, 26 Jul 2001 11:00:57 -0700 (PDT) (envelope-from bmilekic@technokratis.com) Received: (from bmilekic@localhost) by technokratis.com (8.11.3/8.11.3) id f6QI4bc33885; Thu, 26 Jul 2001 14:04:37 -0400 (EDT) (envelope-from bmilekic) Date: Thu, 26 Jul 2001 14:04:37 -0400 From: Bosko Milekic To: Terry Lambert Cc: Alfred Perlstein , Zhihui Zhang , vishwanath pargaonkar , freebsd-hackers@FreeBSD.ORG Subject: Re: cluster size Message-ID: <20010726140437.A33713@technokratis.com> References: <20010725140737.A25132@technokratis.com> <20010725143649.A25300@technokratis.com> <3B6050D1.9DCCD23@mindspring.com> <20010726133617.B33517@technokratis.com> <20010726123900.E26571@elvis.mu.org> <3B6058AC.32F6B2EB@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3B6058AC.32F6B2EB@mindspring.com>; from tlambert2@mindspring.com on Thu, Jul 26, 2001 at 10:51:40AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Jul 26, 2001 at 10:51:40AM -0700, Terry Lambert wrote: > Alfred Perlstein wrote: > > > On Thu, Jul 26, 2001 at 10:18:09AM -0700, Terry Lambert wrote: > > > > The real reason behind all this is to make the input and output > > > > routines symmetric, since mbuf's can be allocated at interrupt, > > > > and clusters can't (or couldn't, last time I looked at 4.3). > > > > > > They can. Whether they are or not I'm not sure. > > > > Er, wouldn't that be the only way for cards to refil thier DMA > > recieve buffers? > > Look at the Tigon II and FXP drivers. The allocations in > the macros turn into m_get, not m_clusterget. From if_fxp.c (fxp_add_rfabuf(), sometimes called from fxp_intr()): MGETHDR(...); <-- get mbuf if (m != NULL) { MCLGET(...); <-- get cluster ... } > -- Terry -- Bosko Milekic bmilekic@technokratis.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message