]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Nagle delay should be based on path mtu
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)
commit1102f700abc81ef1b8d6d2701b67ceed056f7203
tree5a20e7c0e59cfc986b20b915f5bd624850d56619
parent6ba3e8980e6a1bad12fdaffed6417447c19aecf3
sctp: Nagle delay should be based on path mtu

The decision to delay due to Nagle should be based on the path mtu
and future packet size.  We currently incorrectly base it on
'frag_point' which is the SCTP DATA segment size, and also we do
not count DATA chunk header overhead in the computation.  This
actuall allows situations where a user can set low 'frag_point',
and then send small messages without delay.

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