[SCTP]: Enable Nagle algorithm by default.
authorSridhar Samudrala <sri@us.ibm.com>
Sat, 30 Sep 2006 00:08:01 +0000 (17:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 30 Sep 2006 00:08:01 +0000 (17:08 -0700)
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>
net/sctp/socket.c

index 79c3e072cf282027f3988c17d90bbc2c6c2143b8..3fe906d6506982f9e1c7a0bdcf6e67b6d2772d58 100644 (file)
@@ -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;