Subject: Re: mbuf pros and cons [was Re: mtod abuse?]
To: None <tech-net@NetBSD.org>
From: David Young <firstname.lastname@example.org>
Date: 08/10/2004 02:42:53
On Tue, Aug 10, 2004 at 09:03:38AM +0200, Pavel Cahyna wrote:
> > I had a thought about optimizing mbufs. Allow each mbuf chain only one
> > 2k or 4k buffer, whichever buffer is big enough to fit every packet.
> > All mbufs in the chain point their m_data into this buffer. Remove all
> If there is only one buffer, why would a chain be ever needed? One mbuf
> should be enough, no?
The data may not be contiguous in the buffer. You need multiple
m_data/m_len to tell where it is.
David Young OJC Technologies
email@example.com Urbana, IL * (217) 278-3933