]> 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)
commit7305e9b23a55d400116b85eaad4e1300d6a71866
tree7104bb69c8ffba181f3c296aa1534bc11bddd5fc
parent278953bc1f64618f115290e4b2330059e57bdc0d
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