cvs commit: src/sys/netinet tcp_input.c tcp_output.c tcp_sack.c tcp_var.h

Paul Saab ps at FreeBSD.org
Wed May 11 14:37:43 PDT 2005


ps          2005-05-11 21:37:43 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_input.c tcp_output.c tcp_sack.c 
                         tcp_var.h 
  Log:
  When looking for the next hole to retransmit from the scoreboard,
  or to compute the total retransmitted bytes in this sack recovery
  episode, the scoreboard is traversed. While in sack recovery, this
  traversal occurs on every call to tcp_output(), every dupack and
  every partial ack. The scoreboard could potentially get quite large,
  making this traversal expensive.
  
  This change optimizes this by storing hints (for the next hole to
  retransmit and the total retransmitted bytes in this sack recovery
  episode) reducing the complexity to find these values from O(n) to
  constant time.
  
  The debug code that sanity checks the hints against the computed
  value will be removed eventually.
  
  Submitted by:   Mohan Srinivasan, Noritoshi Demizu, Raja Mukerji.
  
  Revision  Changes    Path
  1.272     +5 -4      src/sys/netinet/tcp_input.c
  1.111     +7 -2      src/sys/netinet/tcp_output.c
  1.16      +111 -71   src/sys/netinet/tcp_sack.c
  1.122     +6 -1      src/sys/netinet/tcp_var.h


More information about the cvs-src mailing list