From: Sepherosa Ziehau Date: Wed, 11 Apr 2012 14:15:08 +0000 (+0800) Subject: tcp/syncache: Use the calculated RTO instead of calculate again X-Git-Tag: v3.2.0~1147 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/d60606dd61c86145881f04804f35758d37d7cf61 tcp/syncache: Use the calculated RTO instead of calculate again The recalculation actually uses wrong backoff, grrr --- diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 424d2cdddf..62ba0e74e0 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -263,10 +263,8 @@ syncache_timeout(struct tcp_syncache_percpu *syncache_percpu, TAILQ_INSERT_TAIL(&syncache_percpu->timerq[slot], sc, sc_timerq); if (!callout_active(&syncache_percpu->tt_timerq[slot])) { - callout_reset(&syncache_percpu->tt_timerq[slot], - TCPTV_RTOBASE * tcp_backoff[slot], - syncache_timer, - &syncache_percpu->mrec[slot]); + callout_reset(&syncache_percpu->tt_timerq[slot], rto, + syncache_timer, &syncache_percpu->mrec[slot]); } }