sctp: Tag messages that can be Nagle delayed at creation.
When we create the sctp_datamsg and fragment the user data, we know exactly if we are sending full segments or not and how they might be bundled. During this time, we can mark messages a Nagle capable or not. This makes the check at transmit time much simpler. Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
This commit is contained in:
@@ -674,7 +674,7 @@ static sctp_xmit_t sctp_packet_can_append_data(struct sctp_packet *packet,
|
||||
* Don't delay large message writes that may have been
|
||||
* fragmeneted into small peices.
|
||||
*/
|
||||
if ((len < max) && (chunk->msg->msg_size < max)) {
|
||||
if ((len < max) && chunk->msg->can_delay) {
|
||||
retval = SCTP_XMIT_NAGLE_DELAY;
|
||||
goto finish;
|
||||
}
|
||||
|
Reference in New Issue
Block a user