]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gso: Fix support for linear packets
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Apr 2009 11:31:50 +0000 (04:31 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:37:05 +0000 (10:37 -0700)
commitd6af2381754182d727fb4682e785f56ae8508210
tree80735e0ee70f2b416422ea381ad47c00c44d578f
parent0702b646e5bdc16af64ef6f663e5275a02bf40cd
gso: Fix support for linear packets

upstream commit: 2f181855a0b3c2b39314944add7b41c15647cf86

When GRO/frag_list support was added to GSO, I made an error
which broke the support for segmenting linear GSO packets (GSO
packets are normally non-linear in the payload).

These days most of these packets are constructed by the tun
driver, which prefers to allocate linear memory if possible.
This is fixed in the latest kernel, but for 2.6.29 and earlier
it is still the norm.

Therefore this bug causes failures with GSO when used with tun
in 2.6.29.

Reported-by: James Huang <jamesclhuang@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
net/core/skbuff.c