gro: Fix bogus gso_size on the first fraglist entry
commit85d9faef1812bdc2ee93a727d2bfdebf67a91d0b
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 May 2010 06:07:56 +0000 (20 23:07 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:29:18 +0000 (2 10:29 -0700)
tree7119bb9a47822e88c719766655de5708c40551de
parent894d3cf54d2f7534f024784e8558d0bb2900dcb7
gro: Fix bogus gso_size on the first fraglist entry

[ Upstream commit 622e0ca1cd4d459f5af4f2c65f4dc0dd823cb4c3 ]

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