cvs commit: src/sys/kern uipc_mbuf.c src/sys/sys mbuf.h

Mike Silbersack silby at silby.com
Fri Mar 28 21:55:42 PST 2003


I took the "goal" parameter back out.  The more I thought about it, I
realized that it would only lead to confusion wrt the semantics of what
would be considered a failure.  Additionally, the host chain is unharmed
if memory allocation fails; this allows m_defrag to be called on critical
chains during a time of low memory without the concern of the chain being
lost.  Also, thanks to Bosko's patch to m_dup_pkthdr, I use m_getcl when
needed.

I'm going to beef up MBUF_FRAG_TEST so it can create chains
busdma_load_mbuf cannot coalesce, then I'm going to go hunting for deviant
network drivers.


On Fri, 28 Mar 2003, Mike Silbersack wrote:

> silby       2003/03/28 21:48:36 PST
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/kern             uipc_mbuf.c
>     sys/sys              mbuf.h
>   Log:
>   Add the m_defrag routine, as discussed on committers at .  This
>   incarnation should address the concerns of all in the discussion,
>   and keeps statistics which show how much it is used.
>
>   MFC after:      2 weeks
>
>   Revision  Changes    Path
>   1.112     +83 -0     src/sys/kern/uipc_mbuf.c
>   1.117     +1 -0      src/sys/sys/mbuf.h
>


More information about the cvs-src mailing list