Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 2004 16:14:04 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet udp_usrreq.c
Message-ID:  <200408211614.i7LGE4gV082660@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408211614.i7LGE4gV082660>