net: sctp: Rename SCTP_XMIT_NAGLE_DELAY to SCTP_XMIT_DELAY
authorDavid Laight <David.Laight@ACULAB.COM>
Tue, 22 Jul 2014 08:59:14 +0000 (08:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jul 2014 20:32:11 +0000 (13:32 -0700)
MSG_MORE and 'corking' a socket would require that the transmit of
a data chunk be delayed.
Rename the return value to be less specific.

Signed-off-by: David Laight <david.laight@aculab.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/constants.h
net/sctp/output.c
net/sctp/outqueue.c

index 307728f622efa6b2b3cbb58b99d77f62c9941437..8c337cd0e1e45c5fcf4abdbb20f9ef43a36a3968 100644 (file)
@@ -311,7 +311,7 @@ typedef enum {
        SCTP_XMIT_OK,
        SCTP_XMIT_PMTU_FULL,
        SCTP_XMIT_RWND_FULL,
-       SCTP_XMIT_NAGLE_DELAY,
+       SCTP_XMIT_DELAY,
 } sctp_xmit_t;
 
 /* These are the commands for manipulating transports.  */
index f3bf0ae244df80bed190f85a77290a9ae7f808f7..1eedba5195a36565fbc842fd0c94416cfc04c3b1 100644 (file)
@@ -178,7 +178,7 @@ sctp_xmit_t sctp_packet_transmit_chunk(struct sctp_packet *packet,
 
        case SCTP_XMIT_RWND_FULL:
        case SCTP_XMIT_OK:
-       case SCTP_XMIT_NAGLE_DELAY:
+       case SCTP_XMIT_DELAY:
                break;
        }
 
@@ -712,7 +712,7 @@ static sctp_xmit_t sctp_packet_can_append_data(struct sctp_packet *packet,
                return SCTP_XMIT_OK;
 
        /* Defer until all data acked or packet full */
-       return SCTP_XMIT_NAGLE_DELAY;
+       return SCTP_XMIT_DELAY;
 }
 
 /* This private function does management things when adding DATA chunk */
index d31435e559b23416371106f0a3b93948de420470..7e8f0a117106cabbf043e24e33f56b307cf4fc88 100644 (file)
@@ -629,7 +629,7 @@ redo:
                        done = 1;
                        break;
 
-               case SCTP_XMIT_NAGLE_DELAY:
+               case SCTP_XMIT_DELAY:
                        /* Send this packet. */
                        error = sctp_packet_transmit(pkt);
 
@@ -1015,7 +1015,7 @@ static int sctp_outq_flush(struct sctp_outq *q, int rtx_timeout)
                        switch (status) {
                        case SCTP_XMIT_PMTU_FULL:
                        case SCTP_XMIT_RWND_FULL:
-                       case SCTP_XMIT_NAGLE_DELAY:
+                       case SCTP_XMIT_DELAY:
                                /* We could not append this chunk, so put
                                 * the chunk back on the output queue.
                                 */