Date: Thu, 3 Apr 2014 01:46:04 +0000 (UTC) From: Hiren Panchasara <hiren@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264063 - head/sys/netinet Message-ID: <201404030146.s331k4jq092372@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hiren Date: Thu Apr 3 01:46:03 2014 New Revision: 264063 URL: http://svnweb.freebsd.org/changeset/base/264063 Log: Improve readability of comments for DELAY_ACK() macro. Modified: head/sys/netinet/tcp_input.c Modified: head/sys/netinet/tcp_input.c ============================================================================== --- head/sys/netinet/tcp_input.c Thu Apr 3 01:32:43 2014 (r264062) +++ head/sys/netinet/tcp_input.c Thu Apr 3 01:46:03 2014 (r264063) @@ -503,13 +503,14 @@ do { \ /* * Indicate whether this ack should be delayed. We can delay the ack if - * - there is no delayed ack timer in progress and - * - our last ack wasn't a 0-sized window. We never want to delay - * the ack that opens up a 0-sized window and - * - delayed acks are enabled or - * - this is a half-synchronized T/TCP connection. - * - the segment size is not larger than the MSS and LRO wasn't used - * for this segment. + * following conditions are met: + * - There is no delayed ack timer in progress. + * - Our last ack wasn't a 0-sized window. We never want to delay + * the ack that opens up a 0-sized window. + * - LRO wasn't used for this segment. We make sure by checking that the + * segment size is not larger than the MSS. + * - Delayed acks are enabled or this is a half-synchronized T/TCP + * connection. */ #define DELAY_ACK(tp, tlen) \ ((!tcp_timer_active(tp, TT_DELACK) && \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404030146.s331k4jq092372>