Cache a pointer the last mbuf in the sockbuf for faster insertion.
authorJeffrey Hsu <hsu@dragonflybsd.org>
Wed, 8 Dec 2004 23:59:01 +0000 (23:59 +0000)
committerJeffrey Hsu <hsu@dragonflybsd.org>
Wed, 8 Dec 2004 23:59:01 +0000 (23:59 +0000)
commit507106e01d065d9d0027f985fa0af789f8a75675
tree167acc3f3f3f44167e70b998dfd806357e0f4496
parentc0225cc7c568c0c726e5f156efbb7ced787048f7
Cache a pointer the last mbuf in the sockbuf for faster insertion.
Update it on sockbuf insertion and deletion and on user reads.
Add a new sbappendstream() function that inserts in constant time.
Use it for TCP.
sys/kern/uipc_socket.c
sys/kern/uipc_socket2.c
sys/netinet/tcp_input.c
sys/netinet/tcp_usrreq.c
sys/sys/socketvar.h