Date: Thu, 26 Jul 2001 14:04:37 -0400 From: Bosko Milekic <bmilekic@technokratis.com> To: Terry Lambert <tlambert2@mindspring.com> Cc: Alfred Perlstein <bright@mu.org>, Zhihui Zhang <zzhang@cs.binghamton.edu>, vishwanath pargaonkar <vishubp@yahoo.com>, freebsd-hackers@FreeBSD.ORG Subject: Re: cluster size Message-ID: <20010726140437.A33713@technokratis.com> In-Reply-To: <3B6058AC.32F6B2EB@mindspring.com>; from tlambert2@mindspring.com on Thu, Jul 26, 2001 at 10:51:40AM -0700 References: <20010725140737.A25132@technokratis.com> <Pine.SOL.4.21.0107251416550.21505-100000@opal> <20010725143649.A25300@technokratis.com> <3B6050D1.9DCCD23@mindspring.com> <20010726133617.B33517@technokratis.com> <20010726123900.E26571@elvis.mu.org> <3B6058AC.32F6B2EB@mindspring.com>
index | next in thread | previous in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010726140437.A33713>
