From owner-cvs-all@FreeBSD.ORG Sun Aug 31 22:55:38 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8828716A4BF; Sun, 31 Aug 2003 22:55:38 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DB2143FF9; Sun, 31 Aug 2003 22:55:38 -0700 (PDT) (envelope-from silby@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h815tb0U021678; Sun, 31 Aug 2003 22:55:37 -0700 (PDT) (envelope-from silby@repoman.freebsd.org) Received: (from silby@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h815tbYK021677; Sun, 31 Aug 2003 22:55:37 -0700 (PDT) Message-Id: <200309010555.h815tbYK021677@repoman.freebsd.org> From: Mike Silbersack Date: Sun, 31 Aug 2003 22:55:37 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern uipc_mbuf.c src/sys/netinet ip_output.c src/sys/sys mbuf.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 05:55:38 -0000 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