From owner-cvs-all@FreeBSD.ORG Sat Aug 21 16:14:05 2004 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 379C316A4CE; Sat, 21 Aug 2004 16:14:05 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16C9043D5A; Sat, 21 Aug 2004 16:14:05 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i7LGE4AK082661; Sat, 21 Aug 2004 16:14:04 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i7LGE4gV082660; Sat, 21 Aug 2004 16:14:04 GMT (envelope-from rwatson) Message-Id: <200408211614.i7LGE4gV082660@repoman.freebsd.org> From: Robert Watson Date: Sat, 21 Aug 2004 16:14:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/netinet udp_usrreq.c 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: Sat, 21 Aug 2004 16:14:05 -0000 rwatson 2004-08-21 16:14:04 UTC FreeBSD src repository Modified files: sys/netinet udp_usrreq.c Log: When prepending space onto outgoing UDP datagram payloads to hold the UDP/IP header, make sure that space is also allocated for the link layer header. If an mbuf must be allocated to hold the UDP/IP header (very likely), then this will avoid an additional mbuf allocation at the link layer. This trick is also used by TCP and other protocols to avoid extra calls to the mbuf allocator in the ethernet (and related) output routines. Revision Changes Path 1.164 +7 -4 src/sys/netinet/udp_usrreq.c