cvs commit: src/sys/netinet tcp_output.c

Andre Oppermann andre at FreeBSD.org
Thu Sep 7 05:53:02 PDT 2006


andre       2006-09-07 12:53:01 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_output.c 
  Log:
  Second step of TSO (TCP segmentation offload) support in our network stack.
  
  TSO is only used if we are in a pure bulk sending state.  The presence of
  TCP-MD5, SACK retransmits, SACK advertizements, IPSEC and IP options prevent
  using TSO.  With TSO the TCP header is the same (except for the sequence number)
  for all generated packets.  This makes it impossible to transmit any options
  which vary per generated segment or packet.
  
  The length of TSO bursts is limited to TCP_MAXWIN.
  
  The sysctl net.inet.tcp.tso globally controls the use of TSO and is enabled.
  
  TSO enabled sends originating from tcp_output() have the CSUM_TCP and CSUM_TSO
  flags set, m_pkthdr.csum_data filled with the header pseudo-checksum and
  m_pkthdr.tso_segsz set to the segment size (net payload size, not counting
  IP+TCP headers or TCP options).
  
  IPv6 currently lacks a pseudo-header checksum function and thus doesn't support
  TSO yet.
  
  Tested by:      Jack Vogel <jfvogel-at-gmail.com>
  Sponsored by:   TCP/IP Optimization Fundraise 2005
  
  Revision  Changes    Path
  1.116     +73 -15    src/sys/netinet/tcp_output.c


More information about the cvs-src mailing list