Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Apr 1996 08:49:09 -0700 (PDT)
From:      Garrett Wollman <wollman>
To:        CVS-committers, cvs-all, cvs-sys
Subject:   cvs commit:  src/sys/netinet ip_output.c
Message-ID:  <199604181549.IAA12152@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
wollman     96/04/18 08:49:08

  Modified:    sys/netinet  ip_output.c
  Log:
  Three speed-ups in the output path (two small, one substantial):
  
  1) Require all callers to pass a valid route pointer to ip_output()
     so that we don't have to check and allocate one off the stack
     as was done before.  This eliminates one test and some stack
      bloat from the common (UDP and TCP) case.
  
  2) Perform the IP header checksum in-line if it's of the usual length.
      This results in about a 5% speed-up in my packet-generation test.
  
  3) Use ip_vhl field rather than ip_v and ip_hl bitfields.
  
  Revision  Changes    Path
  1.35      +51 -39    src/sys/netinet/ip_output.c



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