gro: Fix bogus gso_size on the first fraglist entry
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 May 2010 06:07:56 +0000 (23:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Sep 2010 00:21:37 +0000 (17:21 -0700)
commit372ee0be3eb7d1b4fa744a617dd9821a62afd8de
tree3384e611eaabbff2819a842b21cd99e5831b76a3
parentcc760d4a8859a02aeb777d508a276d4b1e726eed
gro: Fix bogus gso_size on the first fraglist entry

commit 622e0ca1cd4d459f5af4f2c65f4dc0dd823cb4c3 upstream.

When GRO produces fraglist entries, and the resulting skb hits
an interface that is incapable of TSO but capable of FRAGLIST,
we end up producing a bogus packet with gso_size non-zero.

This was reported in the field with older versions of KVM that
did not set the TSO bits on tuntap.

This patch fixes that.

Reported-by: Igor Zhang <yugzhang@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/skbuff.c