]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Don't do NAGLE delay on large writes that were fragmented small
authorVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 4 Sep 2009 22:20:59 +0000 (18:20 -0400)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 4 Sep 2009 22:20:59 +0000 (18:20 -0400)
commitc8c7ab4b93e83842eb480f1a7a5093f27b6c6bc2
tree0a419cdc3fe5e7e2d5fa5036a40d93a4bb6aac42
parent1102f700abc81ef1b8d6d2701b67ceed056f7203
sctp: Don't do NAGLE delay on large writes that were fragmented small

SCTP will delay the last part of a large write due to NAGLE, if that
part is smaller then MTU.  Since we are doing large writes, we might
as well send the last portion now instead of waiting untill the next
large write happens.  The small portion will be sent as is regardless,
so it's better to not delay it.

This is a result of much discussions with Wei Yongjun <yjwei@cn.fujitsu.com>
and Doug Graham <dgraham@nortel.com>.  Many thanks go out to them.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
include/net/sctp/structs.h
net/sctp/chunk.c
net/sctp/output.c