aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2009-09-04 18:20:59 -0400
committerVlad Yasevich <vladislav.yasevich@hp.com>2009-09-04 18:20:59 -0400
commitcb95ea32a457871f72752164de8d94fa20f4703c (patch)
tree0a419cdc3fe5e7e2d5fa5036a40d93a4bb6aac42 /include
parentb29e7907288554db9c987c36facfd0304ee8ff5a (diff)
sctp: Don't do NAGLE delay on large writes that were fragmented small
SCTP will delay the last part of a large write due to NAGLE, if that part is smaller then MTU. Since we are doing large writes, we might as well send the last portion now instead of waiting untill the next large write happens. The small portion will be sent as is regardless, so it's better to not delay it. This is a result of much discussions with Wei Yongjun <yjwei@cn.fujitsu.com> and Doug Graham <dgraham@nortel.com>. Many thanks go out to them. Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/sctp/structs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index b1bd2689bb70..df4c6321996d 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -628,7 +628,7 @@ struct sctp_datamsg {
628 /* Chunks waiting to be submitted to lower layer. */ 628 /* Chunks waiting to be submitted to lower layer. */
629 struct list_head chunks; 629 struct list_head chunks;
630 /* Chunks that have been transmitted. */ 630 /* Chunks that have been transmitted. */
631 struct list_head track; 631 size_t msg_size;
632 /* Reference counting. */ 632 /* Reference counting. */
633 atomic_t refcnt; 633 atomic_t refcnt;
634 /* When is this message no longer interesting to the peer? */ 634 /* When is this message no longer interesting to the peer? */