summaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorSridhar Samudrala2006-09-30 02:08:01 +0200
committerDavid S. Miller2006-09-30 02:08:01 +0200
commit208edef6a5b6c50363c77efcf34c4b4020681029 (patch)
tree0e8a34c95e4acc48734240705a47b030ddd91628 /net/sctp
parent[BNX2]: Disable MSI on 5706 if AMD 8132 bridge is present. (diff)
downloadkernel-qcow2-linux-208edef6a5b6c50363c77efcf34c4b4020681029.tar.gz
kernel-qcow2-linux-208edef6a5b6c50363c77efcf34c4b4020681029.tar.xz
kernel-qcow2-linux-208edef6a5b6c50363c77efcf34c4b4020681029.zip
[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>
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/socket.c4
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)
*/
sp->disable_fragments = 0;
- /* Turn on/off any Nagle-like algorithm. */
- sp->nodelay = 1;
+ /* Enable Nagle algorithm by default. */
+ sp->nodelay = 0;
/* Enable by default. */
sp->v4mapped = 1;