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
[EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message