git: tcp: Don't abuse TF_SYNCACHE to ill-optimize syncache_destr
commit 7123bbffe19efb0b96486c3be6f5eaa848dbf7f0
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date: Fri Jan 21 16:14:03 2011 +0800
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.
Summary of changes:
sys/netinet/tcp_syncache.c | 14 ++------------
sys/netinet/tcp_usrreq.c | 1 +
2 files changed, 3 insertions(+), 12 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7123bbffe19efb0b96486c3be6f5eaa848dbf7f0
--
DragonFly BSD source repository