]> git.baikalelectronics.ru Git - kernel.git/commit
gso: Fix support for linear packets
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 29 Mar 2009 06:39:18 +0000 (23:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Mar 2009 06:39:18 +0000 (23:39 -0700)
commit52141eb06a61fa9f4769a2375d40537d87a4a4c8
tree45ba541fa37011adade32e48fcdb6b69d0621602
parent62008ce2a4886e3c1bade88fa40c6cf3780d55f0
gso: Fix support for linear packets

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>
net/core/skbuff.c