]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
gro: Check for GSO packets and packets with frag_list
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Jan 2009 22:36:12 +0000 (14:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Jan 2009 22:36:12 +0000 (14:36 -0800)
commitf17f5c91ae3bfeb5cfc37fa132a5fdfceb8927be
treeba4c4b7c9d71bf15d9e2ceaeebbea8823bb5f120
parent483a2b3a3182abcb7fcea986d7ea13e793bb00b1
gro: Check for GSO packets and packets with frag_list

As GRO cannot be applied to packets with frag_list we need to
make sure that we reject such packets if they are fed to us,
e.g., through a tunnel device.

Also there is no point in applying GRO on GSO packets so they
too should be rejected.  This allows GRO to be used in virtio-net
which may produce GSO packets directly but may still benefit
from GRO if the other end of it doesn't support GSO.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c