aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/output.c')
-rw-r--r--net/sctp/output.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/sctp/output.c b/net/sctp/output.c
index d0b84f6eba4d..b801bc9fb639 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -703,8 +703,10 @@ static sctp_xmit_t sctp_packet_can_append_data(struct sctp_packet *packet,
703 /* Check whether this chunk and all the rest of pending 703 /* Check whether this chunk and all the rest of pending
704 * data will fit or delay in hopes of bundling a full 704 * data will fit or delay in hopes of bundling a full
705 * sized packet. 705 * sized packet.
706 * Don't delay large message writes that may have been
707 * fragmeneted into small peices.
706 */ 708 */
707 if (len < max) { 709 if ((len < max) && (chunk->msg->msg_size < max)) {
708 retval = SCTP_XMIT_NAGLE_DELAY; 710 retval = SCTP_XMIT_NAGLE_DELAY;
709 goto finish; 711 goto finish;
710 } 712 }