cvs commit: src/sys/netinet tcp_input.c

Robert Watson rwatson at
Tue Oct 7 09:41:11 UTC 2008

rwatson     2008-10-07 09:41:07 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_input.c 
  SVN rev 183662 on 2008-10-07 09:41:07Z by rwatson
  Don't pass curthread to sbreserve_locked() in tcp_do_segment(), as the
  netisr or ithread's socket buffer size limit is not the right limit to
  use.  Instead, pass NULL as the other two calls to sbreserve_locked()
  in the TCP input path (tcp_mss()) do.
  In practice, this is a no-op, as ithreads and the netisr run without a
  process limit on socket buffer use, and a NULL thread pointer leads to
  not using the process's limit, if any.  However, if tcp_input() is
  called in other contexts that do have limits, this may prevent the
  incorrect limit from being used.
  MFC after:      3 days
  Revision  Changes    Path
  1.385     +1 -1      src/sys/netinet/tcp_input.c

More information about the cvs-src mailing list