Herbert Xu 21df56c6e2 [TCP]: Fix TCP header misalignment
Indeed my previous change to alloc_pskb has made it possible
for the TCP header to be misaligned iff the MTU is not a multiple
of 4 (and less than a page).  So I suspect the optimised IPsec
MTU calculation is giving you just such an MTU :)

This patch fixes it by changing alloc_pskb to make sure that
the size is at least 32-bit aligned.  This does not cause the
problem fixed by the previous patch because max_header is always
32-bit aligned which means that in the SG/NOTSO case this will
be a no-op.

I thought about putting this in the callers but all the current
callers are from TCP.  If and when we get a non-TCP caller we
can always create a TCP wrapper for this function and move the
alignment over there.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-11-18 18:48:08 -08:00
..
2007-10-26 03:56:43 -07:00
2007-10-10 16:53:11 -07:00
2006-12-02 21:22:55 -08:00
2007-10-10 16:53:56 -07:00
2007-11-02 08:47:06 +01:00
2007-07-10 22:15:41 -07:00
2007-10-10 16:51:28 -07:00
2007-10-15 12:26:42 -07:00
2007-11-10 22:01:15 -08:00
2007-10-07 23:44:17 -07:00
2007-07-10 22:19:04 -07:00
2007-10-10 16:51:28 -07:00
2007-11-18 18:48:08 -08:00
2007-06-07 13:40:50 -07:00
2007-10-10 16:47:46 -07:00