tcp: Don't abuse TF_SYNCACHE to ill-optimize syncache_destroy()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 21 Jan 2011 08:14:03 +0000 (16:14 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 31 Jan 2011 01:46:10 +0000 (09:46 +0800)
commit7123bbffe19efb0b96486c3be6f5eaa848dbf7f0
tree92841a4637f75b30b4c6e61d8bfafd2cf4bce520
parentaad1f73434c23d80797f63cc5c7596f64814c482
tcp: Don't abuse TF_SYNCACHE to ill-optimize syncache_destroy()

- We now turn on TF_SYNCACHE when listen(2) is called.
- When a listen(2) socket is to be close(2), the syncache list on the
  current CPU is thoroughly iterated and all related syncache are marked
  to be dropped instead of the first syncache.
sys/netinet/tcp_syncache.c
sys/netinet/tcp_usrreq.c