]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: flush if we can't fit another DATA chunk
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Fri, 1 Apr 2016 17:05:48 +0000 (14:05 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Apr 2016 19:39:44 +0000 (15:39 -0400)
commit470001e600f5a53d4582b45e6d965d5f815cf728
tree7104bb69c8ffba181f3c296aa1534bc11bddd5fc
parentbe429ab789fd9a4626fae9a40a938a7e1fdce652
sctp: flush if we can't fit another DATA chunk

There is no point on delaying the packet if we can't fit a single byte
of data on it anymore. So lets just reduce the threshold by the amount
that a data chunk with 4 bytes (rounding) would use.

v2: based on the right tree

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/output.c