diff options
author | Sridhar Samudrala <sri@us.ibm.com> | 2006-09-29 20:08:01 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-09-29 20:08:01 -0400 |
commit | 208edef6a5b6c50363c77efcf34c4b4020681029 (patch) | |
tree | 0e8a34c95e4acc48734240705a47b030ddd91628 | |
parent | f9317a40c4e09e20ef01601fc9f5de9e6acb5b96 (diff) |
[SCTP]: Enable Nagle algorithm by default.
This allows more aggressive bundling of chunks when sending small
messages.
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/sctp/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index 79c3e072cf28..3fe906d65069 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -3084,8 +3084,8 @@ SCTP_STATIC int sctp_init_sock(struct sock *sk) | |||
3084 | */ | 3084 | */ |
3085 | sp->disable_fragments = 0; | 3085 | sp->disable_fragments = 0; |
3086 | 3086 | ||
3087 | /* Turn on/off any Nagle-like algorithm. */ | 3087 | /* Enable Nagle algorithm by default. */ |
3088 | sp->nodelay = 1; | 3088 | sp->nodelay = 0; |
3089 | 3089 | ||
3090 | /* Enable by default. */ | 3090 | /* Enable by default. */ |
3091 | sp->v4mapped = 1; | 3091 | sp->v4mapped = 1; |