Re: [PATCH v2] sctp: align MTU to a word

2016-03-20 Thread David Miller
From: Marcelo Ricardo Leitner Date: Sat, 19 Mar 2016 12:17:20 -0300 > SCTP is a protocol that is aligned to a word (4 bytes). Thus using bare > MTU can sometimes return values that are not aligned, like for loopback, > which is 65536 but ipv4_mtu() limits that to 65535. This mis-alignment > will

[PATCH v2] sctp: align MTU to a word

2016-03-19 Thread Marcelo Ricardo Leitner
SCTP is a protocol that is aligned to a word (4 bytes). Thus using bare MTU can sometimes return values that are not aligned, like for loopback, which is 65536 but ipv4_mtu() limits that to 65535. This mis-alignment will cause the last non-aligned bytes to never be used and can cause issues with co