cvs commit: src/sys/kern uipc_mbuf.c src/sys/netinet ip_output.c
src/sys/sys mbuf.h
Mike Silbersack
silby at FreeBSD.org
Sun Aug 31 22:55:38 PDT 2003
silby 2003/08/31 22:55:37 PDT
FreeBSD src repository
Modified files:
sys/kern uipc_mbuf.c
sys/netinet ip_output.c
sys/sys mbuf.h
Log:
Implement MBUF_STRESS_TEST mark II.
Changes from the original implementation:
- Fragmentation is handled by the function m_fragment, which can
be called from whereever fragmentation is needed. Note that this
function is wrapped in #ifdef MBUF_STRESS_TEST to discourage non-testing
use.
- m_fragment works slightly differently from the old fragmentation
code in that it allocates a seperate mbuf cluster for each fragment.
This defeats dma_map_load_mbuf/buffer's feature of coalescing adjacent
fragments. While that is a nice feature in practice, it nerfed the
usefulness of mbuf_stress_test.
- Add two modes of random fragmentation. Chains with fragments all of
the same random length and chains with fragments that are each uniquely
random in length may now be requested.
Revision Changes Path
1.120 +84 -0 src/sys/kern/uipc_mbuf.c
1.193 +2 -18 src/sys/netinet/ip_output.c
1.123 +1 -0 src/sys/sys/mbuf.h
More information about the cvs-src
mailing list