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)
commite43569e6d3c71eb266641c6297ea54f7ac66954f
tree7104bb69c8ffba181f3c296aa1534bc11bddd5fc
parentc862cc9b70526a71d07e7bd86d9b61d1c792cead
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