cvs commit: src/sys/netinet udp_usrreq.c
Robert Watson
rwatson at FreeBSD.org
Sat Aug 21 09:14:05 PDT 2004
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
More information about the cvs-src
mailing list