Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/netinet



Module Name:    src
Committed By:   thorpej
Date:           Wed Oct 22 02:45:57 UTC 2003

Modified Files:
        src/sys/netinet: tcp_subr.c tcp_usrreq.c tcp_var.h

Log Message:
Rather than zeroing a tcpcb structure and filling in all the fields
individually, create a tcpcb template pre-initialized (and pre-zero'd)
with the static and mostly-static tcpcb parameters.  The template is
now copied into the new tcpcb, which zeros and initializes most of the
tcpcb in one pass.  The template is kept up-to-date as TCP sysctl
variables are changed.

Combined with the previous sb_max change, TCP socket creation is now
25% faster.


To generate a diff of this commit:
cvs rdiff -r1.155 -r1.156 src/sys/netinet/tcp_subr.c
cvs rdiff -r1.84 -r1.85 src/sys/netinet/tcp_usrreq.c
cvs rdiff -r1.105 -r1.106 src/sys/netinet/tcp_var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index