Date: Wed, 15 Sep 2010 09:38:43 +0000 (UTC) From: Andre Oppermann <andre@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r212645 - stable/7/sys/netinet Message-ID: <201009150938.o8F9chqF028595@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: andre Date: Wed Sep 15 09:38:42 2010 New Revision: 212645 URL: http://svn.freebsd.org/changeset/base/212645 Log: MFC r211874: Use timestamp modulo comparison macro for automatic receive buffer scaling to correctly handle wrapping of ticks value. Modified: stable/7/sys/netinet/tcp_input.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/netinet/tcp_input.c ============================================================================== --- stable/7/sys/netinet/tcp_input.c Wed Sep 15 09:38:01 2010 (r212644) +++ stable/7/sys/netinet/tcp_input.c Wed Sep 15 09:38:42 2010 (r212645) @@ -1179,7 +1179,7 @@ tcp_do_segment(struct mbuf *m, struct tc if (tcp_do_autorcvbuf && to.to_tsecr && (so->so_rcv.sb_flags & SB_AUTOSIZE)) { - if (to.to_tsecr > tp->rfbuf_ts && + if (TSTMP_GT(to.to_tsecr, tp->rfbuf_ts) && to.to_tsecr - tp->rfbuf_ts < hz) { if (tp->rfbuf_cnt > (so->so_rcv.sb_hiwat / 8 * 7) &&
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009150938.o8F9chqF028595>