svn commit: r212644 - stable/8/sys/netinet
Andre Oppermann
andre at FreeBSD.org
Wed Sep 15 09:38:02 UTC 2010
Author: andre
Date: Wed Sep 15 09:38:01 2010
New Revision: 212644
URL: http://svn.freebsd.org/changeset/base/212644
Log:
MFC r211874:
Use timestamp modulo comparison macro for automatic receive buffer
scaling to correctly handle wrapping of ticks value.
Modified:
stable/8/sys/netinet/tcp_input.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/netinet/tcp_input.c
==============================================================================
--- stable/8/sys/netinet/tcp_input.c Wed Sep 15 08:44:57 2010 (r212643)
+++ stable/8/sys/netinet/tcp_input.c Wed Sep 15 09:38:01 2010 (r212644)
@@ -1441,7 +1441,7 @@ tcp_do_segment(struct mbuf *m, struct tc
if (V_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) &&
More information about the svn-src-stable
mailing list