ipv6: Add GSO support on forwarding path
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 27 May 2010 23:14:30 +0000 (16:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 May 2010 08:57:17 +0000 (01:57 -0700)
commit0aa68271510ae2b221d4b60892103837be63afe4
treef6d6a624a13ced851ea3036995813b1612200e01
parenta47311380e094bb201be8a818370c73c3f52122c
ipv6: Add GSO support on forwarding path

Currently we disallow GSO packets on the IPv6 forward path.
This patch fixes this.

Note that I discovered that our existing GSO MTU checks (e.g.,
IPv4 forwarding) are buggy in that they skip the check altogether,
when they really should be checking gso_size + header instead.

I have also been lazy here in that I haven't bothered to segment
the GSO packet by hand before generating an ICMP message.  Someone
should add that to be 100% correct.

Reported-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_output.c