]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: keep fragmentation point aligned to word size
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Sat, 19 Mar 2016 15:17:43 +0000 (12:17 -0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Mar 2016 20:31:12 +0000 (16:31 -0400)
commitcd69267cce58e19ee5f9371ee871704181c00da6
tree129c2135a113c80baf5026164e2f9ee097931574
parent6bcc394cf71c7efdb93e470804e86400bfe7c0a8
sctp: keep fragmentation point aligned to word size

If the user supply a different fragmentation point or if there is a
network header that cause it to not be aligned, force it to be aligned.

Fragmentation point at a value that is not aligned is not optimal.  It
causes extra padding to be used and has just no pros.

v2:
 - Make use of the new WORD_TRUNC macro

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